.theme-page {
  font-family: "Lexend", system-ui, sans-serif;
}

.theme-panel {
  max-width: 720px;
  padding: clamp(16px, 4vw, 28px);
  color: var(--color-text);
}

.theme-panel h2 {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 20px;
}

.theme-panel p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.theme-details,
.theme-settings-form {
  display: grid;
  gap: 16px;
}

.theme-details {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin: 20px 0;
  padding: 16px 0;
  border-block: 1px solid var(--color-border);
}

.theme-details dt {
  color: var(--color-field-text);
  font-size: 14px;
}

.theme-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.theme-error {
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #812525;
}

.theme-panel .btn {
  min-height: 44px;
}

.theme-panel .theme-help {
  margin: 12px 0 0;
}

.theme-help a {
  text-decoration: underline;
}

.admin-sign-in {
  display: grid;
  justify-items: center;
  align-items: start;
  width: 100%;
  padding: clamp(24px, 7vw, 72px) 16px;
  font-family: "Lexend", system-ui, sans-serif;
}

.admin-sign-in .theme-panel {
  width: min(100%, 480px);
}

.admin-sign-in h1 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: clamp(22px, 5vw, 28px);
}

.theme-progress {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
}

.theme-progress .theme-progress-title {
  margin-bottom: 4px;
}

.theme-progress progress {
  width: 100%;
  height: 10px;
  margin-bottom: 12px;
  accent-color: var(--color-primary);
}

.theme-panel .theme-progress-meta {
  color: var(--color-field-text);
  font-size: 14px;
}

.theme-success {
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
}
