:root {
  font-family: Inter,ui-sans-serif,system-ui,sans-serif;
  color: #17253d;
  background: #f4f7fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #e7ecf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw,20px);
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: #17253d;
  text-decoration: none;
}

.brand span {
  color: #6077ee;
}

main {
  max-width: 780px;
  margin: 42px auto;
  padding: 0 20px;
}

h1 {
  font-size: clamp(2rem,6vw,2.7rem);
  letter-spacing: -.04em;
  margin: .2em 0;
}

.card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 6px 24px #20355908;
}

.narrow {
  max-width: 480px;
  margin: 6vh auto;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

h2 {
  font-size: 1.12rem;
  margin: 0 0 10px;
}

p {
  line-height: 1.55;
  color: #58677e;
}

button {
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  cursor: pointer;
}

.primary {
  background: #596fe4;
  color: white;
}

.secondary {
  background: #edf0ff;
  color: #354bb6;
}

.quiet {
  background: transparent;
  color: #53627a;
}

label {
  display: block;
  margin: 14px 0;
  color: #34435a;
  font-weight: 600;
  font-size: .9rem;
}

input:not([type=checkbox]),select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d9e0eb;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  background: white;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.history {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf0f5;
  font-size: .9rem;
}

.danger {
  padding: 16px;
  color: #8c3341;
}

.danger summary {
  cursor: pointer;
  font-weight: 700;
}

.notice {
  background: #eef2ff;
  padding: 12px;
  border-radius: 8px;
}

@media(max-width:560px) {
  main {
    margin: 25px auto;
  }
  .card {
    padding: 18px;
  }
  .row {
    align-items: flex-start;
  }
  .history {
    grid-template-columns: 1fr 1fr;
  }
  .history span:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
}
