html, body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: normal;
  text-align: center;
}

#events {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-card {
  border: 2px solid #aaa;
  background: #121212;
}

.event-sep {
  border: 0;
  border-top: 1px solid #fff;
  margin: 20px 0;
}

.event-head {
  padding: 14px 12px;
  border-bottom: 1px solid #555;
  background: #1c1c1c;
}

.event-head h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: #fff;
}

.meta {
  margin: 0;
  line-height: 1.5;
}

.meta-label {
  color: #777;
}

.meta-label::after {
  content: ":";
}

.meta-value {
  color: #fff;
}

.event-body {
  padding: 12px;
  background: #0a0a0a;
}

.status {
  margin: 0 0 12px;
}

.interest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

.interest-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  column-gap: 8px;
  align-items: stretch;
}

.interest-item + .interest-item .interest-record {
  border-top: 0;
}

.interest-header {
  color: #fff;
}

.interest-row-spacer,
.interest-item > .btn-delete {
  width: 2rem;
  min-height: 2rem;
}

.interest-row-spacer {
  visibility: hidden;
}

.interest-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  align-items: stretch;
  background: #1a1a1a;
  border: 1px solid #555;
  min-height: 2.75rem;
}

.interest-name,
.interest-travel {
  display: flex;
  align-items: center;
  padding: 8px;
  box-sizing: border-box;
}

.interest-name {
  min-width: 0;
  border-right: 1px solid #555;
}

.interest-travel {
  justify-content: center;
  text-align: center;
}

.interest-header .interest-record {
  background: #242424;
}

.interest-header .interest-name,
.interest-header .interest-travel {
  font-weight: normal;
}

.empty {
  margin: 0 0 12px;
}

.add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field.name {
  flex: 1 1 auto;
  min-width: 0;
}

.field.checkbox {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.field.checkbox label {
  margin: 0;
  font-size: inherit;
  text-align: center;
  max-width: 5.5rem;
  line-height: 1.2;
}

input[type="text"], button {
  font: inherit;
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  box-sizing: border-box;
  padding: 8px;
}

.interest-name input[type="text"] {
  width: 100%;
  min-width: 0;
  background: #111;
  border-color: #555;
}

input[type="text"] {
  width: 100%;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #555;
  background: #111;
  cursor: pointer;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background: #1f9d4a;
  border-color: #1f9d4a;
}

button {
  cursor: pointer;
}

button.btn-add {
  width: 100%;
  background: #1a3a8a;
  border-color: #3a6ad4;
  padding: 12px 8px;
}

button.btn-add:hover,
button.btn-add:focus {
  background: #2a5ad4;
  color: #fff;
}

button.btn-delete {
  background: #8a1a1a;
  border-color: #d43a3a;
  min-width: 2rem;
  padding: 4px 6px;
  font-size: 0.85rem;
  line-height: 1;
  align-self: center;
}

button.btn-delete:hover,
button.btn-delete:focus {
  background: #d43a3a;
  color: #fff;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.error {
  margin-bottom: 16px;
  border: 1px solid #fff;
  padding: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .page {
    padding: 12px;
  }

  h1 {
    font-size: 1.1rem;
  }

  .event-head h2 {
    font-size: 1.05rem;
  }

  .interest-record {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
  }

  .interest-header .interest-travel {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}
