:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1a1a1a;
  background: #f2f2f2;
}

* {
  box-sizing: border-box;
}

body {
  width: min(30rem, calc(100% - 2rem));
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
}

body.wide {
  width: min(56rem, calc(100% - 2rem));
}

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

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: inherit;
  background: #fff;
  border: 1px solid #bfbfbf;
  border-radius: 8px;
  font: inherit;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c5d5f5;
  outline-offset: 2px;
}

button {
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #1858d5;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #144bb5;
}

button.danger {
  background: #c62828;
}

a {
  color: #1858d5;
}

.nav,
.actions,
.submit-row {
  margin-top: 1.5rem;
}

.err,
.warn {
  color: #a61b1b;
}

.ok {
  color: #006a3d;
}

fieldset {
  margin-top: 1.25rem;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

dt {
  font-weight: 600;
}

.meta,
.sep {
  color: #666;
}

.center {
  text-align: center;
}

@media (max-width: 36rem) {
  body,
  body.wide {
    width: 100%;
    margin: 0;
    padding: 1.25rem;
    border: 0;
    border-radius: 0;
  }
}
