[hidden] {
  display: none !important;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #24332e;
  background: #f5f7f5;
  font-size: 14px;
  --green: #177458;
  --line: #e3e9e5;
  --muted: #7b8982;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  padding: 9px 15px;
  border-radius: 7px;
  transition: 0.15s;
}
button:hover {
  background: #f0f5f2;
  border-color: #b3cbbf;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #98cbb8;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 12px;
  line-height: 1.7;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 9px;
}
.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.primary:hover {
  background: #105d46;
  color: #fff;
  border-color: #105d46;
}
.danger {
  background: #b54545;
  border-color: #b54545;
  color: #fff;
}
.danger:hover {
  background: #963333;
  color: #fff;
}
.danger-text {
  color: #b54545;
}
.ghost {
  background: transparent;
}
.icon-button {
  font-size: 24px;
  line-height: 1;
  padding: 4px 9px;
  border: 0;
  background: transparent;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  font-size: 26px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 21px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 10%, #dceee5, transparent 55%), #f5f7f5;
  padding: 24px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 42px;
  width: 420px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 65px #163e2610;
}
.login-card .brand-mark {
  margin-bottom: 32px;
}
.login-card .muted {
  margin: 12px 0 28px;
}
.login-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.login-card .fine {
  text-align: center;
  margin-top: 24px;
}
.error {
  color: #b54545;
  min-height: 18px;
  font-size: 13px;
  margin: 12px 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #dce4df;
  border-radius: 6px;
  padding: 10px 12px;
  color: #24332e;
  outline: none;
  margin-top: 7px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #17745810;
}
input:disabled {
  background: #f4f6f4;
  color: #7b8982;
}
textarea {
  resize: vertical;
}
label .fine {
  display: block;
  font-weight: 400;
  margin-top: 7px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin: 0 8px 0 0;
  accent-color: var(--green);
  vertical-align: middle;
}
.check {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  font-weight: 400;
}
.checks {
  padding: 7px 0 2px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
#app {
  min-height: 100vh;
}
#app:not([hidden]) {
  display: flex;
}
aside {
  width: 226px;
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #21382c;
  padding: 0 6px;
}
.brand small {
  font-size: 12px;
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.nav-label {
  color: #a0aaa4;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 46px 14px 13px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 0;
  text-align: left;
  color: #78857e;
}
nav button.active {
  background: #eaf4ee;
  color: var(--green);
  font-weight: 600;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  padding: 20px 5px 0;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.online-dot {
  display: inline-block;
  background: #3d9d71;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin-left: 226px;
  width: calc(100% - 226px);
  padding: 38px 42px;
  max-width: 1800px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.account {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
.account .ghost {
  padding: 6px 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  position: relative;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 31px;
  margin: 12px 0 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat-icon {
  position: absolute;
  right: 22px;
  top: 20px;
  background: #f0f6f2;
  color: #6b9b83;
  padding: 8px 12px;
  border-radius: 8px;
}
.workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 350px;
  overflow: hidden;
}
.toolbar {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.toolbar h2 {
  font-size: 15px;
}
.toolbar p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  width: 240px;
  margin: 0;
  padding: 9px 12px;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  letter-spacing: 0.3px;
  font-weight: 500;
  color: #839087;
  background: #fafcfb;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 22px;
  font-size: 12px;
  border-bottom: 1px solid #edf0ee;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fcfdfc;
}
.cell-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
}
.sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 7px;
  background: #eef3f0;
  color: #5a7667;
  font-size: 10px;
  margin: 2px 4px 2px 0;
}
.badge.green {
  background: #e9f5ee;
  color: #277a50;
}
.badge.red {
  background: #fbeeed;
  color: #b35652;
}
.badge.amber {
  background: #faf2e3;
  color: #9e773b;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.link-button {
  border: 0;
  padding: 2px 0;
  border-radius: 0;
  background: transparent !important;
  font-size: 12px;
  color: var(--green);
}
.link-button.danger-text {
  color: #b54545;
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.pagination:empty {
  display: none;
}
.pagination button {
  font-size: 11px;
  padding: 5px 10px;
  margin-left: 7px;
}
.page-note {
  font-size: 11px;
  color: #929e97;
  margin: 18px 2px;
}
.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}
.empty .symbol {
  font-size: 30px;
  color: #b2c6ba;
  margin-bottom: 14px;
}
.empty h3 {
  color: #465d50;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  width: 500px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  box-shadow: 0 24px 100px #12302025;
  overflow: auto;
  color: inherit;
}
dialog::backdrop {
  background: #112b204d;
  backdrop-filter: blur(2px);
}
dialog.wide {
  width: 1100px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 15px;
}
.dialog-heading h2 {
  overflow-wrap: anywhere;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
dialog .toolbar {
  padding: 0 0 18px;
}
dialog td,
dialog th {
  padding: 15px 12px;
}
#confirm-text {
  color: #6d7d73;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 23px;
  border: 1px solid #d1e4d8;
  border-radius: 8px;
  background: #f2faf5;
  color: #246347;
  box-shadow: 0 8px 30px #15392015;
  z-index: 20;
  font-size: 13px;
  max-width: 90vw;
}
.key-panel {
  padding: 24px;
}
.key-panel pre {
  padding: 20px;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.8;
}
details {
  max-width: 350px;
}
details summary {
  cursor: pointer;
  color: var(--green);
}
details pre {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
  word-break: break-all;
  font-size: 11px;
  line-height: 1.7;
}
.error-panel {
  padding: 40px;
  color: #a54242;
}
.break {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 150px;
  max-width: 240px;
}
@media (min-width: 1500px) {
  main {
    padding: 46px 60px;
  }
}
@media (max-width: 1000px) {
  aside {
    width: 185px;
    padding: 25px 12px;
  }
  main {
    margin-left: 185px;
    width: calc(100% - 185px);
    padding: 30px 22px;
  }
  .sidebar-foot {
    font-size: 9px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .toolbar {
    padding: 16px;
  }
  .search {
    width: 180px;
  }
  th,
  td {
    padding: 15px;
  }
  .stat-icon {
    display: none;
  }
}
@media (max-width: 700px) {
  #app:not([hidden]) {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand small {
    display: inline;
    margin-left: 7px;
  }
  .brand-mark.small {
    width: 29px;
    height: 29px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 15px;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    font-size: 12px;
    gap: 5px;
    padding: 9px;
    white-space: nowrap;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 24px 14px;
  }
  header {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 23px;
  }
  .account {
    gap: 8px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .stat {
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .stat strong {
    font-size: 25px;
    margin: 0;
  }
  .stat small {
    margin-left: auto;
  }
  .stat .label {
    min-width: 62px;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .search {
    width: 100%;
    max-width: 230px;
  }
  dialog {
    padding: 20px;
  }
  .login-card {
    padding: 30px;
  }
}
