:root {
  --lt-bg: #f3f5f8;
  --lt-surface: #ffffff;
  --lt-text: #0f172a;
  --lt-accent: #0b6efd;
  --lt-border: #d8dee6;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--lt-bg);
  color: var(--lt-text);
  display: flex;
  flex-direction: column;
}

header {
  width: min(960px, 92vw);
  margin: 24px auto 0;
}

.dex-card {
  width: min(560px, 92vw);
  margin: 24px auto;
  background: var(--lt-surface);
  border: 1px solid var(--lt-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.dex-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.theme-form-row {
  margin-bottom: 12px;
}

.theme-form-label {
  margin-bottom: 6px;
}

.theme-form-input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
}

.theme-form-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.dex-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.theme-btn-provider {
  width: 100%;
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.theme-btn--primary,
.theme-btn--success {
  background: #0b6efd;
  color: #fff;
}

.theme-btn--primary:hover,
.theme-btn--success:hover {
  background: #0958c7;
}

.dex-error-box {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
}

.dex-list {
  margin: 10px 0;
  padding-left: 20px;
}

.dex-subtle-text {
  color: #475569;
}

.theme-link-back {
  margin-top: 12px;
}

footer {
  margin-top: auto;
}

@media (max-width: 640px) {
  header {
    margin-top: 16px;
  }

  .dex-card {
    margin: 16px auto;
    padding: 18px;
    border-radius: 12px;
  }
}
