* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  background: #111318;
  color: #e6e8ef;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar {
  width: 310px;
  padding: 18px;
  background: #191c24;
  border-right: 1px solid #2a2f3a;
  overflow-y: auto;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.editor {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(360px, 520px);
  gap: 18px;
  padding: 18px;
  overflow: hidden;
}

.panel {
  background: #191c24;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 18px;
  overflow-y: auto;
}

.label {
  display: block;
  margin: 12px 0 6px;
  color: #adb3c2;
  font-size: 13px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #353b49;
  border-radius: 10px;
  background: #0f1117;
  color: #e6e8ef;
  padding: 11px 12px;
  outline: none;
}

.textarea {
  min-height: 72px;
  resize: vertical;
}

.textarea.big {
  min-height: 130px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 10px;
  background: #303646;
  color: #fff;
  padding: 10px 12px;
  margin-top: 10px;
  cursor: pointer;
  transition: .15s ease;
}

.btn:hover { filter: brightness(1.12); }

.btn-primary { background: #5865f2; }
.btn-success { background: #2fb06f; }
.btn-danger { background: #e05252; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.list {
  margin-top: 14px;
}

.list-item {
  padding: 12px;
  border: 1px solid #2b3040;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #12151c;
}

.list-item span {
  display: block;
  margin-top: 4px;
  color: #9097a8;
  font-size: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 8px;
}

.check {
  padding: 10px;
  color: #adb3c2;
}

.status {
  background: #0c0f14;
  border: 1px solid #293040;
  border-radius: 10px;
  padding: 12px;
  color: #b9c0d0;
  white-space: pre-wrap;
}

.discord-message {
  background: #313338;
  border-radius: 14px;
  padding: 16px;
}

.message-content {
  margin-bottom: 8px;
  color: #f2f3f5;
  white-space: pre-wrap;
}

.embed-card {
  display: flex;
  max-width: 520px;
  border-radius: 4px;
  background: #2b2d31;
  overflow: hidden;
}

.embed-color {
  width: 4px;
  background: #5865f2;
}

.embed-body {
  position: relative;
  flex: 1;
  padding: 12px;
}

.embed-title {
  color: #00a8fc;
  font-weight: 700;
  margin-bottom: 6px;
}

.embed-description {
  white-space: pre-wrap;
  color: #dbdee1;
  margin-bottom: 10px;
}

.embed-thumbnail {
  max-width: 90px;
  max-height: 90px;
  border-radius: 5px;
  float: right;
  margin-left: 12px;
}

.embed-image {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}

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

.preview-field {
  width: 100%;
  white-space: pre-wrap;
}

.preview-field.inline {
  width: calc(33.33% - 8px);
}

.preview-field b {
  display: block;
  color: #f2f3f5;
  margin-bottom: 2px;
}

.preview-field span {
  color: #dbdee1;
}

.embed-footer {
  margin-top: 10px;
  color: #b5bac1;
  font-size: 12px;
}

.hidden { display: none; }

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

.message-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #10131a;
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  padding: 12px;
}

.message-row span,
.muted {
  color: #9299aa;
  font-size: 12px;
}

.message-actions {
  display: flex;
  gap: 8px;
  align-items: start;
}

@media (max-width: 980px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; }
  .editor { grid-template-columns: 1fr; }
}
