:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0a111f;
  background: #f6f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7fb;
}
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  padding: 24px 32px;
  background: #050816;
  color: white;
}
header h1 {
  margin: 0;
  font-size: 24px;
}
header p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}
main {
  flex: 1;
  padding: 24px 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.panel__title {
  font-weight: 600;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.field input,
.field textarea {
  border: 1px solid #d6d9f3;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fdfdff;
}
.field textarea {
  resize: vertical;
}
.field-hint {
  font-size: 12px;
  color: #6b7280;
}
button {
  all: unset;
  cursor: pointer;
  border-radius: 10px;
  background: #0b5df3;
  color: white;
  padding: 10px 16px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}
button:hover {
  opacity: 0.9;
}
.token-hint {
  font-size: 13px;
  color: #5a5f7c;
}
.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.auth-actions button {
  flex: 1;
  background: #111827;
  color: white;
}
.watchers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel__subtitle {
  margin-top: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}
.notice {
  min-height: 24px;
  font-size: 13px;
  color: #ed4956;
}
.watcher {
  border: 1px solid #e1e4f4;
  border-radius: 12px;
  padding: 12px;
  background: #f9faff;
}
.watcher--active {
  border-color: #0b5df3;
  box-shadow: 0 0 0 1px rgba(15, 123, 255, 0.2);
}
.panel.is-hidden {
  display: none;
}
.watcher__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.watcher button {
  background: #ef4444;
}
.button-danger {
  background: #ef4444;
}
.watcher__meta {
  font-size: 13px;
  color: #4b4f62;
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.messages {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}
.message {
  border: 1px solid #e2e6f5;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.message__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #636873;
  margin-bottom: 6px;
}
.message__meta {
  font-size: 13px;
  color: #4b4f62;
  margin-bottom: 4px;
}
.message__body {
  font-size: 15px;
  color: #0a111f;
  line-height: 1.4;
  margin: 8px 0 0;
}
.message__keyword {
  color: #0b5df3;
}
.message__link {
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.message__link a {
  color: #0b5df3;
  word-break: break-all;
}
.webhook {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}
.webhook-actions {
  display: flex;
  gap: 8px;
}
.webhook-actions button {
  flex: 1;
}
.webhook-status {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
  color: #374151;
}
.webhook-status--error {
  color: #dc2626;
}
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
}
