:root { color-scheme: light dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f6f5f1;
  color: #1d1d1b;
}
@media (prefers-color-scheme: dark) {
  body { background: #161614; color: #ecebe6; }
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: -.01em;
}
viz-menu { min-height: 2.2rem; display: flex; align-items: center; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.tresc { max-width: 34rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .75rem; letter-spacing: -.01em; }
p { font-size: 1.1rem; line-height: 1.6; margin: 0; opacity: .8; }
.uwaga { font-size: .95rem; margin-bottom: 1.5rem; }
a { color: inherit; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .1em .45em;
  margin: 0 .1em;
  border: 1px solid currentColor;
  border-bottom-width: 3px;
  border-radius: .35em;
  font: inherit;
  font-size: .9em;
  opacity: .7;
}

/* Widget logowania z Core ma przezroczyste tło i ciemny tekst — w trybie ciemnym
   dostaje stałe jasne tło, inaczej tekst znika. */
viz-auth {
  display: block;
  max-width: 100%;
  text-align: left;
  color-scheme: light;
  color: #1d1d1b;
  background: #fff;
  border-radius: .6rem;
}
