* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0d0f12;
  color: #f3f4f6;
  font-family:
    Inter,
    system-ui,
    sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 32px 48px;

  border-bottom:
    1px solid #2a2d33;
}

header h1 {
  margin: 0;
}

header p {
  margin: 6px 0 0;
  opacity: .55;
}

header a {
  color: inherit;
}

main {
  width: min(
    1000px,
    calc(100% - 40px)
  );

  margin: 40px auto;
}

section {
  margin-bottom: 28px;
  padding: 28px;

  background: #14171b;

  border:
    1px solid #2a2d33;

  border-radius: 14px;
}

h2 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;

  font-size: .9rem;
  font-weight: 600;
}

input,
select {
  width: 100%;

  padding: 12px 14px;

  border:
    1px solid #343840;

  border-radius: 8px;

  background: #0d0f12;
  color: #f3f4f6;

  font: inherit;
}

button {
  padding: 12px 16px;

  border: 0;
  border-radius: 8px;

  background: #f3f4f6;
  color: #0d0f12;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.secondary {
  background: #25282e;
  color: #f3f4f6;
}

.member {
  display: grid;

  grid-template-columns:
    170px 1fr 48px;

  gap: 10px;

  margin-bottom: 10px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#toast {
  position: fixed;

  right: 24px;
  bottom: 24px;

  padding: 14px 18px;

  background: #f3f4f6;
  color: #111;

  border-radius: 10px;

  opacity: 0;
  pointer-events: none;

  transform: translateY(10px);

  transition: .15s;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.error {
  background: #ff4655;
  color: white;
}

@media (
  max-width: 700px
) {
  header {
    padding: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .member {
    grid-template-columns:
      130px 1fr 44px;
  }
}
