* {
  padding: 0;
  margin: 0;
}

html {
  color-scheme: dark light;
}

@keyframes spin {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  background-color: light-dark(#f7f4ff, #1c1a1e);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif,
    Apple Color Emoji,
    Segoe UI Emoji,
    Segoe UI Symbol;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

summary {
  cursor: pointer;
}

button {
  line-height: 1;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  line-height: 1;
  padding: 0.25rem 0.5rem;

  text-decoration: none;
  color: currentColor;

  border-radius: 0.25rem;

  cursor: pointer;

  background: light-dark(#eee, #222);
  border: 1px solid light-dark(#ddd, #333);

  &.active {
    background: light-dark(black, white);
    border-color: light-dark(black, white);
    color: light-dark(white, black);
  }
}

input,
textarea {
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  border-width: 0px;
  background: light-dark(#eee, #111);
}

fieldset {
  border: 1px dashed light-dark(#d2d2d2, #3c3838);
  border-radius: 0.25rem;

  & legend {
    padding: 0 0.25rem;
  }
}

td,
th {
  padding: 0.25rem 0.5rem;
}

header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid currentColor;
  background-color: light-dark(#fbfbfb, #131313);
}

summary {
  & > h1,
  & > h2,
  & > h3,
  & > h4,
  & > h5,
  & > h6 {
    display: inline-block;
  }
}

.headerBar {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sessionInfo {
  flex: 1;
  display: flex;
  justify-content: end;
}

nav {
  padding-bottom: 0.5rem;

  & ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;

    & a {
      text-decoration: none;
    }

    & p {
      user-select: none;
    }
  }
}

.logo,
.logo * {
  text-decoration: none;
  user-select: none;
  color: currentColor;
  font-size: 2.5rem;
}

.card {
  border: 1px solid light-dark(#ececec, #3e3a32);
  background: light-dark(#f7f7f7, #1c1c1c);
  border-radius: 0.25rem;
}

.banner {
  text-align: center;

  &.error {
    color: red;
    background: black;
  }
}

@media print {
  nav,
  .sessionInfo {
    display: none !important;
  }
}
