:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: #24352e;
  background: #f8faf8;
  font-synthesis: none;
  --accent: #207755;
  --line: #e1e7e2;
  --muted: #76827a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: white;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 15px;
  transition:
    background 0.16s,
    transform 0.16s;
}
button:hover {
  background: #eef3ee;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  white-space: nowrap;
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #195e43;
}
aside {
  position: fixed;
  width: 218px;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 36px 22px;
  background: #f0f4f0;
}
.brand {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.5px;
  color: #203b2b;
  text-decoration: none;
}
.brand span {
  color: var(--accent);
  margin: 0 4px;
}
aside > small {
  display: block;
  color: var(--muted);
  margin: 10px 0 45px;
  font-size: 11px;
  letter-spacing: 2px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: none;
  border-color: transparent;
  padding: 12px 10px;
}
nav button.active {
  background: #dfeadf;
  color: var(--accent);
  font-weight: 600;
}
.aside-foot {
  position: absolute;
  bottom: 28px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2.8;
}
.aside-foot button {
  border: none;
  padding: 0;
  background: none;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin-left: 218px;
  padding: 0 46px 50px;
  max-width: 1800px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 38px 0 30px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.heading .muted {
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 36px;
}
.metrics > div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.metrics > div:first-child {
  padding-left: 0;
  border: 0;
}
.metrics small {
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 29px;
  font-weight: 500;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.node {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.node-head {
  display: flex;
  gap: 15px;
  align-items: center;
}
.node-icon {
  width: 38px;
  height: 38px;
  background: #e9efea;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--accent);
  border-radius: 7px;
}
.node-title {
  flex: 1;
}
.node-title h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.node-title small {
  font-family: ui-monospace, monospace;
  color: var(--muted);
  font-size: 11px;
}
.node-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.node-meta {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 11px;
  margin: 16px 0;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 7px;
  background: #e3eee5;
  color: #287644;
  white-space: nowrap;
}
.badge.bad {
  color: #a23b35;
  background: #f6e8e5;
}
.badge.warn {
  color: #9a6a25;
  background: #f6edda;
}
.badge.off {
  color: #7a807a;
  background: #e9ece9;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid #edf0ed;
  vertical-align: middle;
}
td button {
  padding: 5px 8px;
  font-size: 11px;
  margin: 2px;
}
.keys {
  background: #fff;
  border-radius: 5px;
  overflow: auto;
}
.keys table {
  min-width: 760px;
}
.keys th:first-child,
.keys td:first-child {
  padding-left: 16px;
}
.target {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: #eef4ef;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
label {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 7px;
}
input,
textarea {
  background: #fff;
  border: 1px solid #d8e0d9;
  padding: 10px;
  border-radius: 5px;
  color: #24352e;
  min-width: 0;
  width: 100%;
}
input:focus,
textarea:focus {
  outline: 2px solid #b5d7c5;
  outline-offset: 1px;
}
.pagination {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 20px;
  font-size: 12px;
}
.pagination span {
  flex: 1;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 55px;
  color: var(--muted);
}
.empty > span {
  font-size: 42px;
  color: var(--accent);
}
.empty h2 {
  margin-top: 18px;
  color: #24352e;
}
.empty p {
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 80px #162a2020;
  padding: 28px;
  width: min(480px, 94vw);
  color: inherit;
}
dialog[open] {
  animation: enter 0.2s ease;
}
dialog::backdrop {
  background: #17332655;
  backdrop-filter: blur(3px);
}
dialog label {
  margin-top: 18px;
}
dialog h2 {
  font-size: 21px;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-title button {
  border: 0;
  font-size: 22px;
  padding: 0 6px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: end;
  margin-top: 24px;
}
#login .primary {
  width: 100%;
  margin-top: 12px;
}
.error {
  color: #ad4235;
  font-size: 12px;
  min-height: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#detail {
  width: min(960px, 96vw);
  max-height: 90vh;
}
pre {
  font:
    11px/1.65 ui-monospace,
    SFMono-Regular,
    monospace;
  background: #f1f4f1;
  padding: 16px;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
  word-break: break-all;
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  padding: 10px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 30px;
  background: #253d30;
  color: #fff;
  padding: 13px 20px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 6px 25px #0002;
}
input[type="checkbox"] {
  width: auto;
}
button.danger {
  color: #a23b35;
}
section[hidden],
[hidden] {
  display: none !important;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 0 24px 30px;
  }
  aside {
    width: 175px;
    padding: 28px 16px;
  }
  main {
    margin-left: 175px;
  }
  .node-head {
    flex-wrap: wrap;
  }
  .node-actions {
    width: 100%;
    margin-left: 53px;
    flex-wrap: wrap;
  }
  .metrics > div {
    padding: 0 13px;
  }
  .metrics strong {
    font-size: 24px;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .brand {
    font-size: 23px;
  }
  aside > small,
  .aside-foot {
    display: none;
  }
  nav {
    display: flex;
    gap: 3px;
  }
  nav button {
    font-size: 11px;
    padding: 9px;
  }
  main {
    margin: 0;
    padding: 0 16px 30px;
  }
  header {
    height: 50px;
    font-size: 10px;
  }
  .heading {
    margin: 28px 0;
  }
  .heading .muted {
    max-width: 240px;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .metrics > div:nth-child(3) {
    padding-left: 0;
    border: 0;
  }
  .section-line .muted {
    font-size: 10px;
  }
  .node-meta {
    gap: 10px;
    flex-wrap: wrap;
  }
  .node-actions {
    margin-left: 0;
  }
  .filters label {
    flex: 1;
    min-width: 140px;
  }
  .target {
    max-width: 150px;
  }
  .eyebrow {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.header-tools {
  display: flex;
  gap: 16px;
  align-items: center;
}
.header-tools button {
  font-size: 11px;
  padding: 6px 9px;
}
.fido-mark {
  width: 60px;
  height: 60px;
  background: #e3eee5;
  color: var(--accent);
  font-size: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin: 20px 0;
}
.fido-key {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.fido-key > div {
  flex: 1;
}
.fido-key strong {
  display: block;
  font-size: 13px;
}
.fido-key small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.fido-key button {
  font-size: 11px;
  padding: 6px 8px;
}
#security-dialog {
  width: min(560px, 94vw);
}
#add-fido .primary {
  margin-top: 12px;
}
#login h2 {
  margin-bottom: 12px;
}
@media (max-width: 650px) {
  #updated {
    display: none;
  }
  .header-tools {
    gap: 8px;
  }
}
