/* Password Generator: the password with its strength meter, the options, and the extra passwords. */

.pw { display: flex; flex-direction: column; gap: 24px; }

.pw-result {
  align-items: center;
  padding: 20px;
  background: var(--cat-security);
  border: var(--border);
  border-radius: 14px;
}
.pw-result-body { flex: 1 1 320px; }
.pw-main {
  font: 700 clamp(22px, 4vw, 34px)/1.25 var(--font-mono);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.pw-result.is-empty .pw-main { color: var(--line-soft); }
.pw-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pw-strength { display: flex; align-items: center; gap: 12px; }
.pw-meter { display: inline-flex; gap: 4px; }
.pw-meter span {
  width: 28px;
  height: 10px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
/* Level 0–4 fills that many segments plus one, in a colour that goes from red to green. */
.pw-meter[data-level="0"] span:nth-child(-n+1) { background: #F03E3E; }
.pw-meter[data-level="1"] span:nth-child(-n+2) { background: #FF922B; }
.pw-meter[data-level="2"] span:nth-child(-n+3) { background: #FCC419; }
.pw-meter[data-level="3"] span:nth-child(-n+4) { background: #51CF66; }
.pw-meter[data-level="4"] span:nth-child(-n+5) { background: #2B8A3E; }

.pw-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pw-count-field { width: 140px; }

.pw-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 32px;
  align-items: start;
}

.pw-length-row { display: flex; align-items: center; gap: 14px; }
.pw-range { flex: 1; min-width: 0; accent-color: var(--ink); }
.pw-length-number { width: 96px; flex: none; text-align: center; }

.pw-kinds { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pw-kinds legend { margin-bottom: 4px; padding: 0; }
.pw-check { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.pw-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.pw-check code { font: 14px var(--font-mono); color: var(--ink-2); }
.pw-symbols { margin-top: 4px; }
.pw-symbols .input:disabled { opacity: 0.5; }
.pw-count { max-width: 140px; }

.pw-mini { min-height: 36px; padding: 0 12px; font-size: 14px; box-shadow: none; }

.pw-more { display: flex; flex-direction: column; gap: 12px; }
.pw-more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pw-more-list {
  margin: 0;
  padding: 0 0 0 3em;
  background: var(--surface-2);
  border: var(--border);
  border-radius: 14px;
}
.pw-more-list li { padding: 8px 16px 8px 4px; border-bottom: 1.5px dashed var(--line-soft); }
.pw-more-list li:last-child { border-bottom: 0; }
.pw-more-list li::marker { font: 13px var(--font-mono); color: var(--ink-2); }
.pw-more-list li > code { font: 600 15px var(--font-mono); overflow-wrap: anywhere; word-break: break-all; }
.pw-more-list li > .btn { float: right; margin-left: 12px; }
