* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  width: 360px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2933;
  background: #ffffff;
}

.header {
  padding: 14px 16px;
  border-bottom: 1px solid #e4e7eb;
}

.header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1f2933;
}

.content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #52606d;
}

.input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  color: #1f2933;
  background: #f5f7fa;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  outline: none;
}

.input:focus {
  border-color: #4a6fa5;
  background: #ffffff;
}

.btn {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  background: #2b6cb0;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #2c5282;
}

.btn-secondary {
  background: #edf2f7;
  color: #2d3748;
  border-color: #cbd2d9;
}

.btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
}

.msg {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: #52606d;
}

.status {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.status-idle {
  color: #52606d;
}

.status-ok {
  color: #2f855a;
}

.status-error {
  color: #c53030;
}

.error-detail {
  margin: 0;
  font-size: 11px;
  color: #7b8794;
  word-break: break-word;
  min-height: 14px;
}

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

.kv-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #52606d;
}

.kv-value {
  font-size: 13px;
  font-weight: 500;
  color: #1f2933;
  text-align: right;
  word-break: break-word;
}

.kv-url {
  font-weight: 400;
  font-size: 12px;
  color: #52606d;
}
