* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
}

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

.panel {
  background: #ffffff;
  border: 1px solid #d9e0ec;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.08);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.status-ok {
  color: #126343;
  background: #e5f6ed;
}

.status-error {
  color: #8c2f28;
  background: #fde8e5;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.meta-grid div {
  border: 1px solid #d9e0ec;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

dt {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.message-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  color: #172033;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

textarea {
  resize: vertical;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  color: #ffffff;
  background: #2563eb;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

#result {
  color: #64748b;
  font-size: 14px;
}

#result.result-ok {
  color: #126343;
}

#result.result-error {
  color: #8c2f28;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 24px, 920px);
    padding: 24px 0;
  }

  .panel {
    padding: 20px;
  }

  .page-header {
    display: grid;
  }

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

  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
