/* Password generator page. Builds on pw.css, the shared free-tool layout. */
.gn .pw-card { grid-template-columns: minmax(0, 1fr); }
.gn-result { padding: 1.25rem; border-bottom: 1px solid var(--ln); }
.gn-result .pw-label { margin-bottom: .5rem; }
.gn-out { min-height: 4.25rem; padding: .875rem 1rem; border: 2px solid var(--n); border-radius: 4px; background: var(--off); color: var(--ink); font: 500 clamp(1.125rem, 1rem + .9vw, 1.625rem)/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.gn-d { color: #1b57b5; }
.gn-s { color: #0a7559; }
.gn-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .75rem; }
.gn-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 1.25rem; border: 2px solid var(--n); border-radius: 4px; background: #fff; color: var(--n); font: 700 1rem/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.gn-btn:hover { background: var(--off); }
.gn-btn:focus-visible { outline: 3px solid var(--m); outline-offset: 2px; }
.gn-btn--go { background: var(--n); color: #fff; }
.gn-btn--go:hover { background: #162c86; }
.gn-btn:disabled { border-color: var(--ln); background: var(--off); color: var(--mut); cursor: not-allowed; }
.gn-err { margin: .625rem 0 0; color: #b3261e; font-size: .9375rem; font-weight: 600; }
.gn-err[hidden] { display: none; }
.gn-mode { display: inline-flex; margin: 0 0 1.25rem; padding: 3px; border: 1px solid var(--ln); border-radius: 6px; background: var(--off); }
.gn-mode legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gn-mode label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.125rem; border-radius: 4px; color: var(--n); font-weight: 600; cursor: pointer; }
.gn-mode input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.gn-mode label:has(input:checked) { background: var(--n); color: #fff; }
.gn-mode label:has(input:focus-visible) { outline: 3px solid var(--m); outline-offset: 2px; }
.gn-range { margin-bottom: 1.125rem; }
.gn-range-t { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .25rem; }
.gn-range-t label { color: var(--n); font-weight: 700; }
.pw .gn-range-t input { width: 4.5rem; min-height: 44px; padding: 0 .5rem; border: 2px solid var(--n); border-radius: 4px; color: var(--ink); font: 600 1rem/1 "DM Sans", system-ui, sans-serif; text-align: center; box-sizing: border-box; }
.pw .gn-range-t input:focus { outline: 3px solid var(--m); outline-offset: 1px; }
.pw .gn-range > input { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--n); cursor: pointer; }
.gn-opts { display: grid; gap: .125rem; margin: 0; padding: 0; border: 0; }
.gn-opts legend { padding: 0; margin-bottom: .25rem; color: var(--n); font-weight: 700; }
.gn-check { display: flex; align-items: center; gap: .625rem; min-height: 44px; cursor: pointer; }
.pw .gn-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--n); cursor: pointer; }
.gn-check input:focus-visible { outline: 3px solid var(--m); outline-offset: 2px; }
.gn-more { margin-top: .5rem; }
.gn-more summary { display: flex; align-items: center; min-height: 44px; color: var(--n); font-weight: 600; cursor: pointer; }
.gn-more summary:focus-visible { outline: 3px solid var(--m); outline-offset: 2px; }
.pw .gn-field { display: block; width: 100%; min-height: 48px; margin-top: .25rem; padding: 0 .75rem; border: 2px solid var(--n); border-radius: 4px; background: #fff; color: var(--ink); font: 400 1rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-sizing: border-box; }
.pw .gn-field:focus { outline: 3px solid var(--m); outline-offset: 1px; }
.gn-field-w { margin-top: .5rem; margin-bottom: .75rem; }
.gn-field-w label { color: var(--n); font-weight: 700; }
.gn-facts { margin: 1rem 0 0; display: grid; gap: .125rem; font-size: .9375rem; }
.gn-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--ln); }
.gn-facts dt { color: var(--mut); }
.gn-facts dd { margin: 0; color: var(--n); font-weight: 700; text-align: right; }
.gn .pw-meter { margin: 0 0 .625rem; }
.gn .pw-side h2 { margin-bottom: .625rem; }
.gn-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.g .gn-table { min-width: 0; }
.gn-table caption { padding: 0 0 .625rem; color: var(--mut); font-size: .875rem; text-align: left; }
.gn-table th, .gn-table td { padding: .75rem; border-bottom: 1px solid var(--ln); text-align: left; vertical-align: top; }
.gn-table thead th { background: var(--n); color: #fff; font-size: .875rem; }
.gn-table tbody th { color: var(--n); }
.gn-two { display: grid; gap: 1rem; margin-top: 1rem; }
.gn-two > div { padding: 1.25rem; border: 1px solid var(--ln); border-top: 4px solid var(--m); border-radius: 4px; }
.pw .gn-two h3 { margin: 0 0 .5rem; font-size: 1.375rem; }
.gn-two p { margin: 0 0 .75rem; }
.gn-ex { display: block; padding: .5rem .625rem; border-radius: 3px; background: var(--off); color: var(--ink); font: 500 .9375rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
@media (max-width: 639.98px) {
  .gn-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gn-table, .gn-table tbody, .gn-table tr, .gn-table td, .gn-table tbody th, .gn-table caption { display: block; width: 100%; box-sizing: border-box; }
  .gn-table tr { padding: .75rem 0; border-top: 1px solid var(--ln); }
  .gn-table td, .gn-table tbody th { padding: .1875rem 0; border: 0; }
  .gn-table td[data-l]::before { content: attr(data-l) ": "; color: var(--n); font-weight: 700; }
}
@media (min-width: 640px) { .gn-actions { display: flex; justify-content: flex-start; } .gn-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .gn .pw-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gn-result { grid-column: 1 / -1; padding: 2rem 2rem 1.5rem; }
  .gn .pw-side { border-radius: 0 0 6px 0; }
}
.pw.gn .pw-hero h1 { max-width: 22ch; }
