:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: rgb(23 23 23 / 0.65);
  --line: rgb(0 0 0 / 0.1);
  --brand: #da291c;
  --accent: #ffc72c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --muted: rgb(237 237 237 / 0.65);
    --line: rgb(255 255 255 / 0.15);
    --brand: #ff5a4a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 7rem;
  display: grid;
  gap: 1.5rem;
}

h1 { font-size: 1.5rem; margin: 0; }
p { margin: 0; }

.muted { color: var(--muted); }
.label { font-size: 0.875rem; font-weight: 400; color: var(--muted); margin: 0; }
.big { font-size: 1.875rem; font-weight: 600; margin-top: 0.25rem; }
.title { font-size: 1.125rem; font-weight: 600; }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }

.card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

progress {
  width: 100%;
  height: 0.75rem;
  margin-top: 0.75rem;
  appearance: none;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--brand); }
progress::-moz-progress-bar { background: var(--brand); }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.list li + li { border-top: 1px solid var(--line); }

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  background: var(--background);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav ul {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bottom-nav a {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}
.bottom-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* Offlinepagina (static/offline.html) */
.offline { min-height: 100vh; align-content: center; text-align: center; }
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
