:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #dbe1ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.topbar {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(90deg, #1d4ed8, #0f172a);
  color: #fff;
}

.topbar h1 {
  margin: 0;
}

.topbar-title-link,
.topbar-title-link:visited,
.topbar-title-link:hover,
.topbar-title-link:active {
  color: #ffffff;
  text-decoration: none;
}

.version-tag {
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.9;
}

.layout {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

h2 {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

input[type='text'],
input[type='password'] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input[type='range'] {
  width: 100%;
  margin-bottom: 1rem;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text);
}

.checkbox-label.full-row {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.generated-wrap {
  margin-bottom: 0.5rem;
}

.subtle-text {
  margin: 0.2rem 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.meter-wrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 0.6rem;
}

.strength-meter-fill {
  height: 100%;
  width: 0%;
  background: #dc2626;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.strength-label {
  margin-top: 0.6rem;
  font-weight: 600;
}

.feedback-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #374151;
}

.report-bug-hint {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.report-bug-hint a,
.report-bug-hint a:visited {
  color: inherit;
  text-decoration: none;
}

.report-bug-hint a:hover,
.report-bug-hint a:active {
  text-decoration: underline;
}

.privacy-note {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .toggle-grid {
    grid-template-columns: 1fr;
  }
}
