:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #152033;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #1c6b5c;
  color: #fff;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
}

button:hover {
  background: #16584c;
}

.shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
}

.topbar p,
.status,
.empty {
  color: #647084;
  margin-top: 8px;
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  width: min(320px, 42vw);
}

input,
select,
textarea {
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  background: #fff;
  color: #152033;
  min-height: 42px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 18px;
}

.controls,
.controls label {
  display: grid;
  gap: 10px;
}

.controls {
  gap: 16px;
}

label span {
  color: #3e4b5d;
  font-weight: 600;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

h2 {
  font-size: 18px;
}

.records {
  display: grid;
  gap: 14px;
}

.record {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 12px;
}

.record img,
.placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f6;
}

.placeholder {
  display: grid;
  place-items: center;
  color: #7a8796;
}

.recordBody {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.recordTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recordTop span {
  color: #647084;
}

.record p,
pre {
  white-space: pre-wrap;
  word-break: break-word;
}

summary {
  cursor: pointer;
  color: #1c6b5c;
}

pre {
  background: #f6f8fb;
  border-radius: 6px;
  padding: 10px;
  max-height: 220px;
  overflow: auto;
}

@media (max-width: 860px) {
  .topbar,
  .workspace,
  .record,
  .recordTop {
    display: grid;
  }

  .search,
  .search input {
    width: 100%;
  }
}
