body {
  margin: 0;
  color: #333;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.container {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 24px;
  padding-bottom: 18px;
}

h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.15;
}

h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.lede {
  margin: 0;
  font-size: 18px;
}

.panel,
.hit-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 22px;
  padding: 18px;
}

.hit-item {
  border-color: #cfcfcf;
}

.attention-item {
  border-color: #555;
}

.item-meta {
  align-items: center;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: -2px 0 16px;
  padding-bottom: 12px;
}

.item-meta span {
  color: #555;
  font-size: 14px;
}

.well {
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  margin-bottom: 10px;
  min-height: 20px;
  padding: 12px;
}

.well p {
  margin: 8px 0 0;
}

.target {
  background: #fafafa;
  border-color: #d8d8d8;
}

.ratings {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 18px;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0;
  padding: 14px 16px 12px;
}

legend {
  font-weight: bold;
  padding: 0 6px;
}

fieldset p {
  margin: 0 0 8px;
}

.radio-row {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin: 7px 0;
}

.radio-row input {
  margin: 0;
}

.scale {
  border-top: 1px solid #eee;
  padding: 12px 0;
}

.scale:first-of-type {
  border-top: 0;
}

.scale summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

.scale-list {
  margin: 8px 0 0 24px;
}

.feedback-label {
  display: block;
  margin: 18px 0 8px;
}

textarea {
  box-sizing: border-box;
  display: block;
  font: inherit;
  margin-bottom: 18px;
  min-height: 96px;
  padding: 10px;
  width: 100%;
}

.button {
  appearance: none;
  background: #2f6fb3;
  border: 1px solid #24598f;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: bold;
  padding: 10px 16px;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: #24598f;
}

.construct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alert {
  background: #fff6da;
  border: 1px solid #e1c56a;
  border-radius: 4px;
  margin-bottom: 18px;
  padding: 12px;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 24px;
}

.consent-page {
  margin: 0 auto;
  max-width: 760px;
}

.consent-copy {
  border-bottom: 1px solid #ddd;
  margin-bottom: 22px;
  padding-bottom: 8px;
}

.consent-copy p {
  margin: 0 0 16px;
}

.consent-form {
  margin-top: 20px;
}

.consent-checkbox {
  align-items: flex-start;
  display: flex;
  font-weight: bold;
  gap: 10px;
  margin: 0 0 22px;
}

.consent-checkbox input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.attestation-fieldset {
  margin-bottom: 22px;
}

.attestation-label {
  display: block;
  margin: 12px 0 6px;
}

.attestation-label:first-of-type {
  margin-top: 2px;
}

.text-input {
  border: 1px solid #999;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  font: inherit;
  max-width: 360px;
  padding: 9px 10px;
  width: 100%;
}

.text-input:focus {
  border-color: #2f6fb3;
  outline: 2px solid #b8d5f2;
  outline-offset: 1px;
}

.captcha-wrap {
  margin: 0 0 20px;
  min-height: 78px;
  overflow-x: auto;
}

.consent-version {
  color: #666;
  font-size: 13px;
  margin-top: 24px;
}

.form-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
}

.answer-counter {
  font-weight: bold;
  margin: 0;
}

.completion-panel {
  border-left: 4px solid #2f6fb3;
  padding: 4px 0 8px 18px;
}

.completion-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0;
  margin: 8px 0 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}

th {
  background: #f5f5f5;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1040px);
  }

  h1 {
    font-size: 30px;
  }

  .panel,
  .hit-item {
    padding: 14px;
  }
}
