:root {
  --bg: #f3f6fd;
  --card: #ffffff;
  --line: #dbe5ff;
  --text: #13254b;
  --muted: #5f6f95;
  --primary: #2466f5;
  --dark: #1d2d56;
  --ok-bg: #e8f8ef;
  --ok-text: #0f6d3f;
  --err-bg: #ffeceb;
  --err-text: #8f2a2a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top right, #eef4ff 0%, var(--bg) 48%, #f6f8ff 100%);
  color: var(--text);
}

.wa-wrap {
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 16px 26px;
}

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

h1, h2 { margin: 0 0 10px; }
p { margin: 0; color: var(--muted); }

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

.connect-card {
  margin-bottom: 14px;
}

.connect-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(41, 76, 163, 0.08);
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.form-stack { display: grid; gap: 10px; }
label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  border: 1px solid #c6d5fb;
  border-radius: 10px;
  background: #f8fbff;
  color: #13254b;
  font: inherit;
  padding: 10px 12px;
}

textarea { resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2a71ff 0%, #1e4ec8 100%);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-light { background: #dfe9ff; color: #123371; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-disabled { background: #cfd9f0; color: #5e6d95; cursor: not-allowed; }

.alert {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-ok { background: var(--ok-bg); color: var(--ok-text); border-color: #b8ebcc; }
.alert-error { background: var(--err-bg); color: var(--err-text); border-color: #f9c5c5; }

.hint-box {
  margin-top: 12px;
  border: 1px dashed #cad8ff;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}

.hint-box.muted { background: #f2f6ff; }
code {
  display: block;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  padding: 8px;
  background: #0f2145;
  color: #d8e7ff;
  border-radius: 8px;
  overflow-x: auto;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { border-bottom: 1px solid #e2ebff; text-align: left; padding: 10px 8px; }
th { color: #33548f; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

@media (max-width: 920px) {
  .grid.two { grid-template-columns: 1fr; }
  .wa-top { flex-direction: column; }
}
