input, select, textarea, .form-control {
  font-size: 16px;
}

.btn-touch {
  min-height: 44px;
}

.content-wrapper {
  overflow-x: hidden;
}

.test-wrap {
  max-width: 440px;
  margin: 1.5rem auto 2rem;
}

.test-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.test-card h1 {
  font-size: 1.45rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
}

.test-card > p {
  color: #64748b;
  margin-bottom: 1.25rem;
}

.key-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 132px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  margin: 0;
}

.key-drop input {
  display: none;
}

.key-drop-title {
  font-weight: 650;
}

.key-drop-hint {
  color: #64748b;
  font-size: 0.92rem;
}

.test-or {
  text-align: center;
  color: #94a3b8;
  margin: 0.9rem 0;
  font-size: 0.85rem;
}

.test-paste {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  resize: vertical;
  min-height: 120px;
  background: #fff;
}

.test-submit {
  width: 100%;
  margin-top: 0.9rem;
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  background: #0f172a;
  color: #fff;
  font-weight: 650;
}

.test-error {
  margin-top: 0.75rem;
  color: #b91c1c;
  font-size: 0.92rem;
}

.test-result {
  margin-top: 1.1rem;
  border-radius: 16px;
  padding: 1rem 1rem 0.4rem;
}

.test-result.is-ok { background: #ecfdf3; }
.test-result.is-bad { background: #fef2f2; }

.test-result-status {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.test-result.is-ok .test-result-status { color: #15803d; }
.test-result.is-bad .test-result-status { color: #b91c1c; }

.test-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.test-line span { color: #64748b; }
.test-line strong { font-weight: 650; word-break: break-all; text-align: right; }

.history-card {
  border-left: 4px solid #007bff;
}

.checklist li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 576px) {
  .btn-mobile-block {
    display: block;
    width: 100%;
  }

  .content-header h1 {
    font-size: 1.4rem;
  }
}
