:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  color: #1f2933;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.amocopy-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.amocopy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.amocopy-status {
  border: 1px solid #c8d0d9;
  border-radius: 6px;
  background: white;
  padding: 8px 10px;
  min-width: 140px;
  text-align: center;
  font-size: 14px;
}

.amocopy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.amocopy-panel {
  background: white;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  padding: 18px;
}

.amocopy-profilebar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.amocopy-profilebar label {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
}

fieldset {
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  margin: 18px 0;
  padding: 14px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.amocopy-check {
  align-items: center;
  display: flex;
  font-weight: 700;
  gap: 8px;
}

.amocopy-check input {
  width: auto;
}

button {
  border: 0;
  border-radius: 6px;
  background: #0969da;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 38px;
  padding: 9px 14px;
}

button:hover {
  background: #0757b8;
}

.amocopy-actions {
  display: flex;
  justify-content: flex-end;
}

.amocopy-runs {
  display: grid;
  gap: 8px;
}

.amocopy-run {
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfe;
  font-size: 13px;
}

.amocopy-run strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 780px) {
  .amocopy-header,
  .amocopy-grid {
    display: block;
  }

  .amocopy-status,
  .amocopy-panel {
    margin-top: 16px;
  }

  .amocopy-profilebar {
    grid-template-columns: 1fr;
  }
}
