/* Globales Styling — Refined Minimalism, ÖTV-konform.
   Tailwind via CDN; hier nur Custom-Tokens und Komponenten-Basis. */

:root {
  --bg: 0 0% 100%;
  --fg: 240 5% 6%;
  --muted: 240 5% 96%;
  --muted-fg: 240 4% 46%;
  --border: 240 6% 90%;
  --primary: 240 6% 10%;
  --primary-fg: 0 0% 98%;
  --accent: 240 5% 96%;
  --destructive: 0 72% 51%;
  --warning: 38 92% 50%;
  --success: 142 71% 45%;
  --ring: 240 5% 6%;
  --radius: 0.75rem;
}

[data-theme="dark"] {
  --bg: 240 6% 6%;
  --fg: 0 0% 98%;
  --muted: 240 4% 12%;
  --muted-fg: 240 5% 70%;
  --border: 240 4% 18%;
  --primary: 0 0% 98%;
  --primary-fg: 240 6% 6%;
  --accent: 240 4% 14%;
  --ring: 0 0% 98%;
}

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

.mono, .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum';
}

* { box-sizing: border-box; }

a { color: inherit; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 0.6rem;
  font-size: 0.93rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: background-color 140ms ease, border-color 140ms ease,
              box-shadow 140ms ease, transform 100ms ease, color 140ms ease;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.22);
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-fg));
  box-shadow:
    0 1px 2px hsl(var(--fg) / 0.18),
    inset 0 1px 0 hsl(0 0% 100% / 0.08),
    inset 0 -1px 0 hsl(var(--fg) / 0.18);
}
.btn-primary:hover:not(:disabled) {
  background: hsl(var(--fg) / 0.86);
  transform: translateY(-1px);
  box-shadow:
    0 5px 14px hsl(var(--fg) / 0.22),
    inset 0 1px 0 hsl(0 0% 100% / 0.1),
    inset 0 -1px 0 hsl(var(--fg) / 0.18);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 2px hsl(var(--fg) / 0.18),
    inset 0 2px 4px hsl(var(--fg) / 0.25);
}
.btn-primary:focus-visible {
  box-shadow:
    0 0 0 3px hsl(var(--bg)),
    0 0 0 5px hsl(var(--ring) / 0.5),
    inset 0 -1px 0 hsl(var(--fg) / 0.18);
}

.btn-secondary {
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  border-color: hsl(var(--border));
  box-shadow: 0 1px 2px hsl(var(--fg) / 0.06);
}
.btn-secondary:hover:not(:disabled) {
  background: hsl(var(--muted));
  border-color: hsl(var(--fg) / 0.35);
  box-shadow: 0 3px 8px hsl(var(--fg) / 0.1);
  transform: translateY(-1px);
}
.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  background: hsl(var(--muted));
  box-shadow: inset 0 1px 2px hsl(var(--fg) / 0.12);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--fg));
  border-color: hsl(var(--border));
}
.btn-ghost:hover:not(:disabled) {
  background: hsl(var(--muted));
  border-color: hsl(var(--fg) / 0.3);
  box-shadow: 0 2px 6px hsl(var(--fg) / 0.08);
}
.btn-ghost:active:not(:disabled) {
  background: hsl(var(--muted));
  box-shadow: inset 0 1px 2px hsl(var(--fg) / 0.1);
}

.btn-destructive {
  background: hsl(var(--destructive));
  color: white;
  box-shadow:
    0 1px 2px hsl(var(--destructive) / 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.15),
    inset 0 -1px 0 hsl(0 0% 0% / 0.18);
}
.btn-destructive:hover:not(:disabled) {
  background: hsl(var(--destructive) / 0.93);
  transform: translateY(-1px);
  box-shadow:
    0 5px 14px hsl(var(--destructive) / 0.4),
    inset 0 1px 0 hsl(0 0% 100% / 0.18),
    inset 0 -1px 0 hsl(0 0% 0% / 0.18);
}
.btn-destructive:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 2px hsl(var(--destructive) / 0.35),
    inset 0 2px 4px hsl(0 0% 0% / 0.25);
}

.btn-sm {
  height: 2.1rem;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
}
.btn-lg {
  height: 2.85rem;
  padding: 0 1.35rem;
  font-size: 1rem;
  border-radius: 0.7rem;
}

/* --- Inputs --- */
.input, select.input, textarea.input {
  width: 100%;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font: inherit;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
textarea.input { height: auto; min-height: 4rem; padding: 0.5rem 0.75rem; }
.input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.12);
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-fg));
}
label.field > .input { font-size: 0.95rem; color: hsl(var(--fg)); }

/* --- Cards --- */
.card {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.25rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  min-width: 0;
}

.app-header {
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.8rem 0;
  background: hsl(var(--bg));
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.app-nav a {
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: hsl(var(--muted-fg));
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.app-nav a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--fg));
}
.app-nav a.active {
  background: hsl(var(--fg));
  color: hsl(var(--bg));
  border-color: hsl(var(--fg));
}

.tab-content {
  width: 100%;
  min-width: 0;
  min-height: 24rem;
}

.brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand .dot { color: hsl(var(--success)); }

main.content { padding: 1.5rem 0 4rem; }

/* --- Tables --- */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th, table.data td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}
table.data th {
  font-weight: 500;
  color: hsl(var(--muted-fg));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
table.data tr:hover td { background: hsl(var(--muted) / 0.4); }
table.data td.num { font-family: 'JetBrains Mono', monospace; font-feature-settings: 'tnum'; }

.picker-list {
  max-height: 22rem;
  overflow: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--bg));
}
.picker-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  cursor: pointer;
}
.picker-row:last-child { border-bottom: 0; }
.picker-row:hover { background: hsl(var(--muted) / 0.55); }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  background: hsl(var(--muted));
  color: hsl(var(--muted-fg));
  border: 1px solid hsl(var(--border));
}
.badge-success { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); border-color: hsl(var(--success) / 0.3); }
.badge-warning { background: hsl(var(--warning) / 0.12); color: hsl(var(--warning)); border-color: hsl(var(--warning) / 0.3); }
.badge-danger { background: hsl(var(--destructive) / 0.12); color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / 0.3); }

/* --- Bracket --- */
.bracket {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background:
    linear-gradient(90deg, hsl(var(--muted) / 0.58) 1px, transparent 1px),
    linear-gradient(180deg, hsl(var(--muted) / 0.72), hsl(var(--bg)));
  background-size: 3.5rem 100%, 100% 100%;
}
.bracket-round {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.55rem;
  min-width: 205px;
  scroll-snap-align: start;
}
.bracket-round:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.9rem;
  right: -0.65rem;
  bottom: 0.55rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    hsl(var(--border)),
    transparent
  );
}
.bracket-round-label {
  position: sticky;
  top: 0;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--bg) / 0.92);
  box-shadow: 0 1px 2px hsl(var(--fg) / 0.04);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-fg));
  margin-bottom: 0.1rem;
}
.bracket-match {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.8rem;
  padding: 0.25rem;
  background: hsl(var(--bg));
  cursor: pointer;
  box-shadow:
    0 1px 2px hsl(var(--fg) / 0.05),
    0 7px 18px hsl(var(--fg) / 0.035);
  transition: border-color 120ms, box-shadow 120ms, transform 120ms, background-color 120ms;
}
.bracket-match::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: hsl(var(--border));
  opacity: 0.9;
}
.bracket-match:hover {
  border-color: hsl(var(--fg) / 0.5);
  box-shadow:
    0 7px 20px hsl(var(--fg) / 0.11),
    0 1px 2px hsl(var(--fg) / 0.08);
  transform: translateY(-1px);
}
.bracket-match.completed {
  background: linear-gradient(180deg, hsl(var(--bg)), hsl(var(--muted) / 0.32));
}
.bracket-match.completed::before {
  background: hsl(var(--success));
}
.bracket-match.waiting {
  cursor: not-allowed;
}
.bracket-match.waiting:hover {
  border-color: hsl(var(--border));
  box-shadow:
    0 1px 2px hsl(var(--fg) / 0.05),
    0 7px 18px hsl(var(--fg) / 0.035);
  transform: none;
}
.bracket-match.bye {
  opacity: 0.72;
}
.bracket-match.bye::before {
  background: hsl(var(--muted-fg) / 0.35);
}
.bracket-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.38rem;
  min-height: 1.55rem;
  padding: 0.22rem 0.32rem 0.22rem 0.5rem;
  font-size: 0.78rem;
  border-radius: 0.5rem;
}
.bracket-side.winner {
  background: hsl(var(--success) / 0.08);
  font-weight: 700;
}
.bracket-side.loser {
  color: hsl(var(--muted-fg));
}
.bracket-player {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.32rem;
}
.bracket-side .name {
  min-width: 0;
  max-width: 116px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bracket-side .seed {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.12rem;
  height: 0.95rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--muted-fg));
  font-size: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
}
.bracket-side .scores {
  flex: 0 0 auto;
  min-width: 2.65rem;
  padding: 0.1rem 0.25rem;
  border-radius: 0.38rem;
  background: hsl(var(--muted) / 0.65);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-feature-settings: 'tnum';
  color: hsl(var(--fg));
  text-align: right;
}
.bracket-side.loser .scores {
  color: hsl(var(--muted-fg));
}
.bracket-divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 0.06rem 0.32rem;
}

/* --- Gruppen-Matches --- */
.group-match-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.group-match-head,
.group-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.4rem minmax(0, 1fr) minmax(8rem, 0.8fr) 4.6rem;
  align-items: center;
  gap: 0.5rem;
}
.group-match-head {
  padding: 0 0.5rem;
  color: hsl(var(--muted-fg));
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.group-match-row {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.45rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  cursor: pointer;
  text-align: left;
}
.group-match-row:hover {
  border-color: hsl(var(--fg) / 0.45);
  background: hsl(var(--muted) / 0.28);
}
.group-match-row.completed {
  background: linear-gradient(180deg, hsl(var(--bg)), hsl(var(--muted) / 0.25));
}
.group-player {
  min-width: 0;
  height: 2.1rem;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  border-radius: 0.45rem;
  background: hsl(var(--muted) / 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.group-player.winner {
  background: hsl(var(--success) / 0.13);
  box-shadow: inset 3px 0 0 hsl(var(--success));
}
.group-vs {
  justify-self: center;
  color: hsl(var(--muted-fg));
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.group-score {
  min-height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 0.45rem;
  background: hsl(var(--muted) / 0.42);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  white-space: nowrap;
}
.group-points {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}
.point-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--muted-fg));
  font-weight: 800;
  font-size: 0.75rem;
}
.point-pill.winner {
  border-color: hsl(var(--success) / 0.35);
  background: hsl(var(--success) / 0.16);
  color: hsl(var(--success));
}

/* --- Rangliste --- */
.ranking-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.ranking-box {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--bg));
  overflow: hidden;
}
.ranking-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.45);
}
.ranking-box-head h3 {
  margin: 0;
  font-size: 1rem;
}
.ranking-box-list {
  display: flex;
  flex-direction: column;
}
.ranking-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid hsl(var(--border));
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: hsl(var(--fg));
  color: hsl(var(--bg));
  font-weight: 700;
  font-size: 0.8rem;
}
.ranking-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.ranking-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-meta {
  min-width: 3rem;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.ranking-meta span {
  display: block;
  font-weight: 700;
}
.ranking-meta small {
  color: hsl(var(--muted-fg));
  font-size: 0.65rem;
}

/* --- Modal --- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: hsl(var(--fg) / 0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  max-width: 540px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 50px hsl(var(--fg) / 0.15);
}
.modal h2 { margin-bottom: 1rem; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* --- Score-Buttons (mobile-friendly) --- */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.score-tile {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}
.score-tile .name {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.score-tile .games-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
}
.score-tile .games {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 600;
  font-feature-settings: 'tnum';
  min-width: 2ch;
  text-align: center;
}
.score-tile .step {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--bg));
  font-size: 1.2rem;
  cursor: pointer;
}
.score-tile .step:hover { background: hsl(var(--muted)); }

/* --- Empty State --- */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-fg));
  border: 1px dashed hsl(var(--border));
  border-radius: 1rem;
}

/* --- Toast --- */
.toast-container {
  position: fixed; bottom: 1rem; right: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 200;
}
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: hsl(var(--fg));
  color: hsl(var(--bg));
  box-shadow: 0 8px 20px hsl(var(--fg) / 0.2);
  font-size: 0.9rem;
  max-width: 360px;
  animation: toast-in 200ms ease-out;
}
.toast.error { background: hsl(var(--destructive)); color: white; }
.toast.success { background: hsl(var(--success)); color: white; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* --- Utilities --- */
.row { display: flex; align-items: center; gap: 0.75rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 0.75rem; }
.gap-sm { gap: 0.4rem; }
.gap-lg { gap: 1.5rem; }
.muted { color: hsl(var(--muted-fg)); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.bold { font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.divider { height: 1px; background: hsl(var(--border)); margin: 0.75rem 0; }

footer.foot {
  border-top: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
  font-size: 0.78rem;
  color: hsl(var(--muted-fg));
  text-align: center;
}
footer.foot a { color: inherit; text-decoration: underline; }
