:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  line-height: 1.45;
}

body {
  margin: 0;
  color: #17202a;
  background: #f7f8fa;
}

header,
main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccd2d8;
}

nav,
.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

th,
td {
  padding: 0.55rem;
  border: 1px solid #ccd2d8;
  text-align: left;
}

.stacked {
  display: grid;
  gap: 0.6rem;
  max-width: 24rem;
}

input,
button {
  font: inherit;
  padding: 0.5rem;
}

.inline {
  display: inline;
  margin: 0;
}

.details {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  max-width: 50rem;
  background: white;
  border: 1px solid #ccd2d8;
}

.details dt,
.details dd {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #e2e5e8;
}

.details dt {
  font-weight: 600;
}

.error {
  color: #9b1c1c;
}
