.narrow { max-width: 760px; }

:root { --warn: #d97706; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --warn: #fbbf24; }
}
:root[data-theme="dark"] { --warn: #fbbf24; }

.result { margin-bottom: 16px; }

.output-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 14px 18px;
}
.output {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
  user-select: all;
  min-height: 1.4em;
}
.output .d { color: var(--accent); }
.output .s { color: var(--warn); }

.strength { margin-top: 14px; }
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.25s, background 0.25s;
}
.strength-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 0.85rem;
}
.strength-text span { color: var(--muted); }

.copy-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 1rem;
}

.settings .fields { gap: 16px; }
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 16px;
}
.checks code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 4px;
}

.tips {
  margin: 28px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.tips h2 {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 8px;
}
.tips ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tips strong { color: var(--text); }
