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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

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

.eyebrow {
  margin: 0 0 4px;
  color: #5f6d69;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.primary {
  min-width: 96px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #0f766e;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.secondary {
  min-height: 38px;
  border: 1px solid #aab8b3;
  border-radius: 6px;
  background: white;
  color: #16211f;
  font-weight: 700;
  cursor: pointer;
}

.secondary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.panel,
.preview {
  border: 1px solid #d8dfdc;
  border-radius: 8px;
  background: white;
  padding: 20px;
}

.panel {
  display: grid;
  gap: 18px;
}

.field,
.field-row {
  display: grid;
  gap: 8px;
}

.field-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.actions-row {
  display: flex;
  justify-content: flex-start;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

label,
.field span {
  color: #33423f;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  padding: 10px 12px;
  color: #16211f;
}

input[type="color"] {
  width: 64px;
  height: 40px;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  padding: 3px;
}

textarea {
  resize: vertical;
}

.preview {
  margin-top: 16px;
}

.announcement-preview {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 10px 16px;
  color: white;
  font-weight: 700;
  text-align: center;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.preview-grid > div {
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  padding: 14px;
}

.preview-label {
  display: block;
  margin-bottom: 4px;
  color: #66736f;
  font-size: 13px;
}

.stock-preview-badge {
  display: inline-block;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 40px;
  padding: 5px 13px 6px;
  background: white;
  color: #16211f;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #5f6d69;
}

.status[data-tone="success"] {
  color: #0f766e;
}

.status[data-tone="danger"] {
  color: #b42318;
}

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

  .primary {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
