:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #123b65;
  color: #fff;
}

header a {
  color: #fff;
}

.shell {
  width: min(100% - 2rem, 70rem);
  margin: 2rem auto;
}

.narrow {
  max-width: 28rem;
}

form,
label {
  display: grid;
  gap: 1rem;
}

label {
  gap: 0.4rem;
}

input,
button {
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #8c99aa;
  border-radius: 0.5rem;
  font: inherit;
}

button {
  border: 0;
  background: #1261a0;
  color: #fff;
  cursor: pointer;
}

.link {
  padding: 0.25rem;
  background: transparent;
}

.error {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #ffe8e8;
  color: #8b1d1d;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 8px #1b355018;
  color: #123b65;
  text-decoration: none;
}

.responsive-table,
table {
  width: 100%;
  max-width: 100%;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #dce2ea;
  overflow-wrap: anywhere;
  text-align: left;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 64rem) {
  thead {
    display: none;
  }

  tr,
  td {
    display: block;
  }

  tr {
    padding: 0.5rem;
    border-bottom: 1px solid #dce2ea;
  }

  td {
    display: grid;
    grid-template-columns: minmax(6rem, 35%) minmax(0, 1fr);
    border: 0;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
  }
}
