:root {
  color: #1f2328;
  background: #eef2f4;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
}

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

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

h1 { font-size: 22px; font-weight: 650; margin: 0 0 4px; }

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

.muted { color: #6a737d; }

.card {
  background: #fff;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e6ebef;
}

.row:last-child { border-bottom: 0; }

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

.btn, .btn-ghost, .btn-danger {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 7px 12px;
  background: #0075d4;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost {
  background: #fff;
  color: #1f2328;
  border-color: #c5ced6;
}

.btn-danger { background: #c53929; }

.btn:disabled, .btn-ghost:disabled { opacity: 0.55; cursor: default; }

label { display: block; margin: 12px 0; }

label span, .label {
  display: block;
  margin-bottom: 4px;
  color: #3c4450;
}

input[type="text"], input[type="url"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

textarea { min-height: 120px; resize: vertical; }

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

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.step {
  border: 0;
  background: transparent;
  color: #6a737d;
  padding: 4px 0;
}

.step.active { color: #0075d4; font-weight: 650; }

.badge {
  display: inline-block;
  border-radius: 99px;
  padding: 2px 8px;
  background: #e7f6ee;
  color: #1f8a4c;
  font-size: 12px;
}

.badge.warn { background: #fff4d6; color: #8a5a00; }
.badge.off { background: #eef0f2; color: #6a737d; }
.badge.bad { background: #fde8e6; color: #c53929; }

.error {
  background: #fde8e6;
  color: #8d241c;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
}

.ok { color: #1f8a4c; }

pre, .json {
  background: #f6f8fa;
  border-radius: 6px;
  padding: 10px;
  overflow: auto;
  font-size: 12px;
}

.hit {
  padding: 8px 10px;
  border-top: 1px solid #e6ebef;
}

.hit strong { display: block; }

.footer-actions { display: flex; justify-content: space-between; margin-top: 16px; }

.notice { max-width: 640px; margin: 48px auto; background: #fff; border: 1px solid #d5dde3; border-radius: 8px; padding: 24px; }

.lang { background: transparent; border: 0; color: #0075d4; padding: 0; }

.field-app { padding: 4px 2px 8px; }

.field-view { min-height: 22px; padding: 4px 2px; }

.combo { position: relative; }

.combo-line { display: flex; gap: 6px; align-items: center; }

.combo input { flex: 1; }

.list {
  margin-top: 4px;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef2f4;
  padding: 8px 10px;
}

.option.active, .option:hover { background: #e8f3fc; }

.option small { display: block; color: #6a737d; }

.status-line { color: #6a737d; padding: 6px 2px; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .top, .row { flex-direction: column; align-items: stretch; }
}
