:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #4267b2;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

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

.button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #172033;
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button.secondary {
  background: white;
  color: #172033;
  border: 1px solid #d8dee8;
}

#adminToken {
  width: 150px;
  min-height: 42px;
  padding: 0 12px;
}

.button.publish {
  background: #0a7c50;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #d8dee8;
  margin-bottom: 22px;
}

.status-band > div {
  background: white;
  padding: 18px;
}

.label,
.label-row span,
label {
  color: #435066;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-band strong {
  display: block;
  margin-top: 6px;
  color: #172033;
  font-size: 1.05rem;
}

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

.composer,
.history {
  background: white;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 20px;
}

.section-heading p {
  color: #637087;
  line-height: 1.5;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

textarea,
input {
  width: 100%;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  padding: 12px;
  color: #172033;
  background: #fbfcfe;
}

textarea:focus,
input:focus {
  outline: 3px solid rgba(66, 103, 178, 0.18);
  border-color: #4267b2;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.label-row small {
  color: #7a8495;
}

.targets {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.target {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.target-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.target-title strong {
  overflow-wrap: anywhere;
}

.checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 600;
  color: #172033;
}

.checks input {
  width: auto;
}

.posts {
  display: grid;
  gap: 12px;
}

.post {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  background: #e8eef8;
  color: #244b94;
  font-size: 0.78rem;
  font-weight: 800;
}

.post p {
  color: #435066;
  line-height: 1.45;
  white-space: pre-wrap;
}

.result {
  color: #637087;
  font-size: 0.86rem;
  margin-top: 6px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100% - 32px));
  border-radius: 8px;
  padding: 14px 16px;
  background: #172033;
  color: white;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.18);
}

@media (max-width: 850px) {
  .topbar,
  .label-row {
    align-items: stretch;
    flex-direction: column;
  }

  .status-band,
  .workspace {
    grid-template-columns: 1fr;
  }
}
