h1 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 2rem;
}

.lede {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 60ch;
}

.tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  align-items: start;
}

.tool__controls,
.tool__output {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

select, input[type="range"] {
  width: 100%;
  font: inherit;
  margin-bottom: 16px;
}

select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

input[type="range"] { accent-color: var(--accent); }

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0;
}

.checks input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

.output-value {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 12px;
}

.output-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

button {
  flex: 1;
  font: inherit;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }

.strength {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.strength.weak { color: #c0392b; }
.strength.fair { color: #d68910; }
.strength.strong { color: #1e8e3e; }
.strength.very-strong { color: #0f6b2e; }

.hint {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

.faq { margin-top: 48px; max-width: 70ch; }

.faq h2 { font-size: 1.3rem; margin-top: 32px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

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