:root {
  color-scheme: light dark;
  --bg: #f4f5f2;
  --panel: #fff;
  --surface: #eef1ed;
  --surface-hover: #e7eeea;
  --text: #172629;
  --text-2: #425256;
  --muted: #5d6d70;
  --line: #d7deda;
  --line-strong: #a5b8b1;
  --accent: #174f51;
  --accent-2: #236b69;
  --accent-soft: #dcebea;
  --accent-rgb: 23, 79, 81;
  --amber: #966023;
  --danger: #a33336;
  --success: #42723b;
  --radius: 10px;
  --font-body:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --shadow: 0 12px 36px #15272420;
  --sidebar-w: 220px;
  --grad-card: var(--accent-soft);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131b1d;
    --panel: #1a2527;
    --surface: #202e30;
    --surface-hover: #293d3e;
    --text: #ecf2ee;
    --text-2: #c5d1cd;
    --muted: #a4b7b1;
    --line: #36484a;
    --line-strong: #68847e;
    --accent: #9dd8cc;
    --accent-2: #b9e7de;
    --accent-soft: #214642;
    --accent-rgb: 157, 216, 204;
    --amber: #e5b870;
    --danger: #ffa7a7;
    --success: #a2cc92;
    --shadow: 0 16px 40px #0005;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 16px;
  line-height: 1.35;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
fieldset {
  min-width: 0;
}
p {
  max-width: 74ch;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
input,
select {
  accent-color: var(--accent);
  caret-color: var(--accent);
}
::selection {
  background: var(--accent-soft);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:hover:not(:disabled),
a.btn:hover {
  background: var(--surface-hover);
}
.hidden,
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 13px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
kbd {
  font: 12px var(--font-body);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  background: var(--panel);
}
.skip-link:focus {
  top: 12px;
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #0b20276b;
}
.boot-status {
  display: grid;
  min-height: 100svh;
  place-items: center;
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }
  dialog[open] {
    animation: reveal 0.15s ease-out;
  }
  @keyframes reveal {
    from {
      transform: translateY(5px);
    }
    to {
      transform: none;
    }
  }
}
