:root {
  color-scheme: light dark;
  --background: #fafaf9;
  --foreground: #0c0a09;
  --muted: #57534e;
  --surface: #efeeec;
  --hover: #e5e3e0;
  --border: #c7c3bd;
  --accent: #57534e;
  --on-accent: #fff;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0c0a09;
    --foreground: #e7e5e4;
    --muted: #a8a29e;
    --surface: #232120;
    --hover: #302d2a;
    --border: #57534e;
    --accent: #d6d3d1;
    --on-accent: #0c0a09;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0c0a09;
  --foreground: #e7e5e4;
  --muted: #a8a29e;
  --surface: #232120;
  --hover: #302d2a;
  --border: #57534e;
  --accent: #d6d3d1;
  --on-accent: #0c0a09;
}
:root[data-theme="light"] {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}
.shell {
  max-width: 44rem;
  margin-inline: auto;
  padding: 4rem 1.5rem 1.5rem;
}
#boot-status,
noscript {
  display: block;
  max-width: 44rem;
  margin: 2rem auto;
  padding: 1rem;
}
.site-header,
.brand,
.button-row,
.card-heading,
.extra-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header {
  justify-content: space-between;
  margin-bottom: 3rem;
}
.brand img {
  object-fit: contain;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.brand p,
.muted,
footer,
.extra-meta {
  color: var(--muted);
  font-size: 0.875rem;
}
.brand p {
  margin-bottom: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: var(--surface);
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
}
button:hover:enabled {
  background: var(--hover);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.8rem;
  background: var(--surface);
  margin-bottom: 2.5rem;
}
.tabs [aria-selected="true"],
.primary {
  background: var(--accent);
  color: var(--on-accent);
}
button.primary:hover:enabled {
  background: var(--accent);
  filter: brightness(0.9);
}
.card {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.connection {
  margin-bottom: 1.5rem;
}
.connection p,
.extra-description,
label {
  font-size: 0.875rem;
}
form {
  display: grid;
  gap: 0.4rem;
}
input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: var(--background);
  font-size: 0.875rem;
}
form input {
  margin-bottom: 0.5rem;
}
.button-row {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 0.4rem;
}
#instance-status {
  margin-top: 0.8rem;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
#instance-installed:not(:empty) {
  margin-top: 1rem;
}
.installed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.875rem;
}
.installed-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}
#extras-count {
  margin-block: 1rem;
}
.catalogue {
  display: grid;
  gap: 1rem;
}
.card-heading {
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.extra-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.extra-title h3 {
  margin: 0;
}
.version {
  font-size: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 1rem;
}
.extra-links {
  gap: 0.7rem;
  font-size: 0.8rem;
}
.extra-meta {
  margin-block: 0.4rem 0;
}
.extra-description {
  margin-block: 0.75rem;
}
.extra-actions p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--muted);
}
.error {
  color: #b91c1c;
  font-size: 0.875rem;
}
:root[data-theme="dark"] .error {
  color: #fca5a5;
}
code,
pre {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}
p code,
li code {
  background: var(--hover);
  border-radius: 0.25rem;
  padding: 0.1rem 0.25rem;
}
pre {
  overflow-x: auto;
  padding: 1.25rem;
  background: #1c1917;
  color: #f5f5f4;
  border-radius: 1rem;
  line-height: 1.6;
  tab-size: 2;
}
.code-block {
  position: relative;
  margin-block: 1rem 2rem;
}
.code-block pre {
  padding-top: 3rem;
}
.code-block button {
  position: absolute;
  right: 0.75rem;
  top: 0.65rem;
  background: #44403c;
  color: #fafaf9;
}
.instructions {
  padding-left: 1.25rem;
}
.instructions li {
  margin-bottom: 1.75rem;
}
footer {
  text-align: center;
  margin-top: 3rem;
  padding-block: 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .shell {
    padding: 2rem 1rem 1rem;
  }
  .brand {
    gap: 0.7rem;
  }
  h1 {
    font-size: 1.25rem;
  }
  .brand p {
    font-size: 0.75rem;
  }
  .site-header {
    gap: 0.7rem;
  }
}
