* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172c26;
  background: #f3f5f1;
  --green: #175b43;
  --muted: #60706a;
  --line: #dce4dc;
  --ink: #172c26;
}
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #388e69; outline-offset: 3px; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.24; }
h2 { font-size: 1.08rem; }
p { line-height: 1.55; }
.layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 100vh; }
aside {
  padding: 27px 18px 21px; background: #122c22; color: #f0f7f1;
  display: flex; flex-direction: column; gap: 44px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: #b8e2c4; color: #153d2c; font-weight: 800; }
nav { display: grid; gap: 6px; }
nav button { text-align: left; padding: 11px 13px; background: transparent; color: #c1d6cb; border: 0; border-radius: 8px; }
nav button:hover, nav button[aria-current] { background: #244437; color: #fff; }
.account { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #365046; padding-top: 15px; }
.account strong { overflow-wrap: anywhere; }
.account small { display: block; margin-top: 4px; color: #b9cdc2; }
.account .quiet { background: transparent; border-color: #526b60; color: #e9f1eb; }
.content { width: min(100%, 1450px); margin: 0 auto; padding: 44px clamp(21px, 4vw, 58px); }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-heading { margin-bottom: 28px; }
.page-heading p { color: var(--muted); margin-top: 9px; }
.primary, .quiet, .link-button { border-radius: 8px; padding: 8px 13px; border: 1px solid transparent; white-space: nowrap; }
.primary { color: #fff; background: var(--green); padding: 9px 15px; }
.primary:hover { background: #124b37; }
.quiet { border-color: var(--line); background: #fff; color: var(--ink); }
.quiet:hover { border-color: #91ad9e; }
.link-button { background: transparent; color: var(--green); padding-left: 0; margin-bottom: 10px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 25px; }
.overview-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.metrics div, .panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.metrics div { padding: 18px 20px; }
.metrics dt { color: var(--muted); font-size: .9rem; }
.metrics dd { margin-top: 9px; font-size: 1.9rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.section-heading { padding: 15px 19px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 15px; border-top: 1px solid #edf0eb; font-size: .88rem; }
th { background: #f8faf7; color: #52675d; white-space: nowrap; }
td { overflow-wrap: anywhere; }
td small { display: block; margin-top: 4px; color: var(--muted); }
td .quiet { margin: 2px 4px 2px 0; font-size: .83rem; padding: 5px 8px; }
td a.quiet { display: inline-block; text-decoration: none; }
.inline-form { display: inline; }
.node-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; width: max-content; }
.node-actions .quiet { margin: 0; }
.empty { padding: 30px 19px; color: var(--muted); }
.muted { color: var(--muted); }
.status { border-radius: 999px; display: inline-block; padding: 3px 8px; white-space: nowrap; font-size: .83rem; }
.status.good { color: #155c3f; background: #e2f3e8; }
.status.bad { color: #8b3b21; background: #faeee6; }
.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #c6dfca; border-radius: 8px; background: #e7f3e8; }
.notice.failure, .error { color: #992f1e; }
.notice.failure { border-color: #ebc4b6; background: #fff0ea; }
.error:empty { display: none; }
.login-layout { display: grid; place-items: center; min-height: 100vh; padding: 22px; background: #e9f1e9; }
.login, dialog { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.login { padding: 34px; width: min(100%, 410px); box-shadow: 0 15px 36px #1c4a2d14; }
.login h1 { margin: 28px 0 20px; font-size: 1.65rem; }
form, fieldset { display: grid; gap: 14px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cddbd0; border-radius: 7px; background: #fff; color: var(--ink); }
dialog { padding: 20px; width: min(92vw, 480px); color: var(--ink); }
dialog .section-heading { padding: 0; margin-bottom: 16px; }
dialog::backdrop { background: #0e271b70; }
#invitation-result label { margin-top: 12px; }
#install-result label { margin: 12px 0; }
#install-command { resize: vertical; font-family: monospace; }
#copy-feedback { min-height: 1.5em; }
@media (max-width: 730px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  aside { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 15px; }
  nav { display: flex; order: 3; width: 100%; }
  .account { margin: 0 0 0 auto; border: 0; padding: 0; }
  .account small { display: none; }
  aside .brand { max-width: 52vw; }
  .content { padding: 24px 15px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metrics div { padding: 12px 9px; }
  .overview-panels { grid-template-columns: minmax(0, 1fr); }
}
.node-list-heading { justify-content: flex-end; }
.toolbar { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; gap: 10px; }
.toolbar select { min-width: 0; text-overflow: ellipsis; }
.toolbar button { flex-shrink: 0; }
.toolbar select, .panel input[type="search"] { width: min(100%, 240px); }
#management-dialog { width: min(94vw, 700px); max-height: 90vh; }
#management-fields { display: grid; gap: 14px; }
.form-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
fieldset legend { margin-bottom: 8px; font-weight: 680; }
.permission-list, .member-list { border: 1px solid var(--line); border-radius: 8px; max-height: 235px; overflow: auto; }
.permission-row, .member-row { display: flex; gap: 12px; padding: 8px 10px; align-items: center; overflow-wrap: anywhere; }
.permission-row { justify-content: space-between; }
.permission-row > span { min-width: 0; }
.permission-row small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }
.permission-row select { width: auto; flex-shrink: 0; }
.permission-row + .permission-row, .member-row + .member-row { border-top: 1px solid var(--line); }
.member-row input { width: 16px; height: 16px; min-height: auto; flex-shrink: 0; }
.audit-settings { max-height: 20rem; max-width: 36ch; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 730px) {
  nav { overflow-x: auto; }
  nav button { flex-shrink: 0; }
}
@media (max-width: 460px) {
  .form-columns { grid-template-columns: minmax(0, 1fr); }
}
