:root { color-scheme: light dark; }

body {
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 1.5rem;
  max-width: 1400px;
}

body.login { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }

h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.sub { margin: .15rem 0 0; font-size: .85rem; opacity: .65; }
.muted { opacity: .6; font-weight: normal; font-size: .85rem; }

form { display: grid; gap: .5rem; min-width: 18rem; }
form h1 { margin-bottom: 0; }
label { font-size: .85rem; opacity: .8; }
input {
  padding: .5rem; font: inherit; border-radius: 4px;
  border: 1px solid #8886; background: transparent; color: inherit;
}

header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid #8884;
}

section { margin-bottom: 2rem; }

/* Wide tables scroll inside their own box so the page body never does. */
.scroll { overflow-x: auto; max-height: 60vh; overflow-y: auto; }

table { border-collapse: collapse; width: 100%; }
th, td {
  border: 1px solid #8884; padding: .35rem .6rem; text-align: left;
  font-size: 13px; vertical-align: top;
  max-width: 40rem; overflow-wrap: anywhere;
}
th { background: #8882; position: sticky; top: 0; }

ul { margin: .5rem 0; padding-left: 1.2rem; font-size: 13px; }
details summary { cursor: pointer; font-size: .9rem; }

#error { color: #c00; min-height: 1.2em; font-size: .85rem; }
button {
  padding: .45rem .9rem; font: inherit; cursor: pointer;
  border-radius: 4px; border: 1px solid #8886; background: #8881; color: inherit;
}
button:hover { background: #8883; }
