:root {
  --bg: #f2efe7;
  --ink: #132022;
  --card: #fffefb;
  --accent: #0f766e;
  --accent-2: #c05621;
  --line: #d4cec1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, #d9efe6 0, transparent 40%),
    radial-gradient(circle at 100% 0, #f7d7c2 0, transparent 35%),
    var(--bg);
}

.hero {
  padding: 40px 20px 28px;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.log-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.card {
  padding: 16px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
}

label > span {
  font-size: 13px;
  opacity: 0.8;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

button {
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.list {
  display: grid;
  gap: 8px;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.list-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.muted {
  color: #556;
  font-size: 13px;
}

.operator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px;
}

.webhook-tools {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

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

.actions-row > button {
  flex: 1 1 180px;
}

.danger {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.hidden {
  display: none;
}

.log-card {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 16px;
}

#log-output {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #161b1d;
  color: #d8ece9;
  min-height: 130px;
  overflow: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
