* { box-sizing: border-box; }

.raw-record {
  margin: 0;
  min-height: 100vh;
  background: #10171c;
  color: #eef5f8;
  font-family: sans-serif;
}

.raw-record__main {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  padding-block: 1.5rem;
}

.raw-record__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.raw-record__header h1 { margin-top: 0; }

.raw-record__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.raw-record__actions a,
.raw-record__header button {
  border: 0;
  border-radius: .6rem;
  padding: .75rem 1rem;
  background: #3f9cff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.raw-record__header button {
  cursor: pointer;
}

.raw-record__actions a:hover,
.raw-record__actions a:focus-visible,
.raw-record__header button:hover,
.raw-record__header button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.raw-record__status {
  border-left: .4rem solid #3f9cff;
  padding: .6rem .8rem;
  background: #19252d;
}

.raw-record__status[data-kind="invalid"],
.raw-record__status[data-kind="error"] {
  border-color: #ff9f1c;
}

.raw-record__content {
  min-height: 20rem;
  max-height: calc(100vh - 15rem);
  overflow: auto;
  border: 1px solid #51606b;
  border-radius: .75rem;
  padding: 1rem;
  background: #080d10;
  color: #c8f7d4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

@media (max-width: 40rem) {
  .raw-record__header { flex-direction: column; }
  .raw-record__actions { flex-wrap: wrap; }
}
