:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app {
  min-height: 100vh;
  padding: 16px;
}

.panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d7dce2;
  border-radius: 8px;
}

.panel-wide {
  max-width: 860px;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.status,
.result {
  margin: 0 0 16px;
  color: #626d7a;
  font-size: 15px;
  line-height: 1.4;
}

.debug-line {
  margin: -6px 0 16px;
  color: #9aa3ad;
  font-size: 13px;
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #3f4b5b;
}

select,
textarea {
  width: 100%;
  border: 1px solid #c7cdd5;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: #111827;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: #2688eb;
  cursor: pointer;
}

.field + button,
form button {
  width: 100%;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #c7cdd5;
  border-radius: 6px;
  padding: 0 12px;
  color: #2688eb;
  text-decoration: none;
  font-weight: 600;
}

.messages {
  display: grid;
  gap: 14px;
}

.message-card {
  border: 1px solid #d7dce2;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #626d7a;
  font-size: 13px;
}

.message-meta span {
  border: 1px solid #d7dce2;
  border-radius: 999px;
  padding: 4px 8px;
}

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

.actions button {
  flex: 1 1 150px;
}

button.secondary {
  background: #6b7280;
}

button.danger {
  background: #d93025;
}
