.rel-app {
  max-width: 800px;
  margin: 20px auto;
  padding: 24px;
  border: 1px solid #ddd;
  color: #111;
  background: #fff;
  font: 16px/1.5 Arial, sans-serif;
}

.rel-app * { box-sizing: border-box; }
.rel-app h2, .rel-app h3, .rel-app h4 {
  margin: 0 0 20px;
  color: #111;
  font-family: Arial, sans-serif;
}

.rel-url-row {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rel-url-number { color: #555; font-size: 14px; }
.rel-url-row input[type="url"] {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid #aaa;
  border-radius: 0;
  padding: 9px 10px;
  color: #111;
  background: #fff;
  font: inherit;
}

.rel-remove {
  min-height: 42px;
  border: 1px solid #aaa;
  border-radius: 0;
  color: #111;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.rel-actions, .rel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.rel-button {
  min-height: 40px;
  border: 1px solid #111;
  border-radius: 0;
  padding: 8px 14px;
  color: #111;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.rel-primary { color: #fff; background: #111; }
.rel-button:disabled { cursor: wait; opacity: .6; }
.rel-status, .rel-results {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 16px;
  background: #fff;
}
.rel-status.rel-error, .rel-source-errors { color: #a00; }
.rel-category { margin-top: 22px; }
.rel-category h4 { border-bottom: 1px solid #ddd; padding-bottom: 6px; font-size: 16px; }
.rel-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}
.rel-item input { width: 17px; height: 17px; }
.rel-item:has(input:checked) .rel-item-name { text-decoration: line-through; }
.rel-item-note, .rel-amount { color: #555; }

@media (max-width: 600px) {
  .rel-app { margin: 0; padding: 16px; }
  .rel-actions, .rel-heading { align-items: stretch; flex-direction: column; }
  .rel-button { width: 100%; }
}
