:root {
  color-scheme: light dark;
  --ink: #1d1d1f;
  --muted: #626269;
  --line: #e5e5ea;
  --fill: #f5f5f7;
  --bg: #fff;
  --side: #fafafc;
  --blue: #0879df;
  --green: #24803d;
  --red: #c3322b;
  --orange: #a65e00;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #b0b0b7;
    --line: #38383a;
    --fill: #2c2c2e;
    --bg: #1c1c1e;
    --side: #161618;
    --blue: #0a84ff;
    --red: #ff6461;
    --green: #30d158;
    --orange: #ffad31;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.body {
  display: flex;
  min-height: 100dvh;
}
.side {
  width: 214px;
  flex: none;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 24px 10px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.boxname {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 18px;
  overflow-wrap: anywhere;
}
.boxname b {
  font-weight: 600;
}
.side nav {
  display: grid;
  gap: 2px;
}
.side nav a {
  color: var(--ink);
  padding: 9px 10px;
  display: flex;
  gap: 9px;
  align-items: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
}
.side nav a:hover {
  background: var(--fill);
}
.side nav a[aria-current] {
  background: var(--blue);
  color: #fff;
}
.side i {
  width: 17px;
  text-align: center;
  font-style: normal;
}
.foot {
  margin-top: auto;
  padding: 10px 8px 0;
  color: var(--muted);
  font-size: 11.5px;
}
.main {
  flex: 1;
  min-width: 0;
  max-width: 1000px;
  padding: 26px 32px 40px;
}
.personal {
  justify-content: center;
}
.personal .main {
  max-width: 840px;
}
.back,
.link {
  font-size: 13px;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
}
.back {
  display: inline-block;
  margin-bottom: 12px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.021em;
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 600;
}
h2 {
  font-size: 16px;
  margin: 0;
}
.lead,
.muted,
.val,
small {
  color: var(--muted);
  font-size: 13px;
}
.lead {
  margin: 0 0 20px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: clip;
}
.panel > h2 {
  background: var(--fill);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.row,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}
.row {
  font-size: 13.5px;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.row + .row {
  border-top: 1px solid var(--line);
}
.grow {
  flex: 1;
  min-width: 0;
}
.row b.grow {
  font-weight: 500;
}
.row small {
  display: block;
}
.actions {
  flex-wrap: wrap;
  background: var(--fill);
  border-top: 1px solid var(--line);
}
.actions form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.actions a {
  display: inline-flex;
  align-items: center;
}
.btn,
button,
select {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  text-decoration: none;
}
.row button,
.row .btn {
  font-size: 12px;
  padding: 5px 10px;
  min-height: 32px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:hover:not(:disabled),
.btn:hover {
  background: var(--fill);
}
.primary,
.primary:hover:not(:disabled) {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, var(--line));
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot.ok {
  background: var(--green);
}
.dot.warn {
  background: var(--orange);
}
.dot.bad {
  background: var(--red);
}
.tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--fill);
  color: var(--muted);
}
.empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.fields,
.grid {
  padding: 14px;
  display: grid;
  gap: 14px;
}
.grid {
  grid-template-columns: 1fr 1fr;
}
.fields > .actions {
  margin: 0 -14px -14px;
}
.fields > button {
  justify-self: start;
}
label,
legend {
  font-size: 13px;
  color: var(--muted);
}
label {
  display: grid;
  gap: 4px;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.row select {
  width: auto;
}
.actions form select {
  width: auto;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  margin: 4px 12px 3px 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
}
fieldset small {
  display: block;
}
.banner {
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, var(--bg));
  font-size: 13px;
}
.warn,
.error {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 10%, var(--bg));
}
.sw,
.row button.sw {
  width: 42px;
  height: 25px;
  min-height: 25px;
  border-radius: 15px;
  border: 0;
  background: var(--line);
  position: relative;
}
.sw:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #0003;
}
.sw[aria-checked="true"],
.sw[aria-checked="true"]:hover {
  background: #30b956;
}
.sw[aria-checked="true"]:before {
  left: 19px;
}
.log {
  font:
    12px/1.7 ui-monospace,
    Menlo,
    monospace;
  padding: 12px 14px;
  max-height: 400px;
  overflow: auto;
  color: var(--muted);
}
.log b,
.log time {
  margin-right: 10px;
}
.log b {
  color: var(--ink);
}
dialog {
  width: min(420px, 94vw);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
}
dialog::backdrop {
  background: #0005;
}
dialog p {
  margin: 0;
}
.login {
  max-width: 420px;
  margin: 12vh auto;
  padding: 20px;
}
.mark {
  color: var(--blue);
  font-weight: 700;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tabs [aria-pressed="true"] {
  background: var(--fill);
  color: var(--blue);
}
.login [data-code] {
  display: flex;
  gap: 8px;
  align-items: end;
}
.login [data-code] > label {
  flex: 1;
}
.more {
  font-size: 12px;
}
.more summary {
  cursor: pointer;
  color: var(--blue);
}
.more[open] div {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .body {
    display: block;
  }
  .side {
    width: auto;
    height: auto;
    position: static;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .boxname {
    padding: 0 4px 6px;
  }
  .side nav {
    display: flex;
    overflow-x: auto;
  }
  .side nav a {
    white-space: nowrap;
    padding: 7px 10px;
  }
  .foot {
    display: none;
  }
  .main {
    padding: 20px 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row .grow {
    min-width: 100px;
  }
  .row > .val {
    overflow-wrap: anywhere;
  }
  .tag {
    white-space: nowrap;
  }
}
