/* Генератор паролей: раскладка и шаги — общие с генератором robots.txt (классы rg-). */
@import url("robots-generator.css");

.pg-presets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 560px) { .pg-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-preset { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; min-height: 44px; }
.pg-preset input { margin-top: 4px; flex: none; accent-color: var(--cyan); }
.pg-preset span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-preset b { color: var(--text); font-size: .95rem; }
.pg-preset small { color: var(--text-muted); font-size: .8rem; line-height: 1.35; }
.pg-preset:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.pg-preset:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pg-range { width: 100%; accent-color: var(--cyan); min-height: 40px; }
.pg-mono { font-family: var(--font-mono); }
.pg-chars, .pg-phrase { display: flex; flex-direction: column; gap: 10px; }
.pg-chars[hidden], .pg-phrase[hidden] { display: none; }

.pg-list { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; }
.pg-list li { display: flex; align-items: center; gap: 8px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 6px 6px 12px; min-width: 0; }
.pg-list code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 1rem; color: var(--text); overflow-wrap: anywhere; word-break: break-all; background: none; padding: 0; }
.pg-copy { flex: none; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--cyan); font-size: .85rem; cursor: pointer; }
.pg-copy:hover { background: var(--cyan-soft); }

.pg-meter { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-read); }
.pg-bar { flex: 0 0 120px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pg-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--cyan); transition: width .2s; }
.pg-bar i.is-l0 { background: #f87171; } .pg-bar i.is-l1 { background: var(--amber); } .pg-bar i.is-l2, .pg-bar i.is-l3, .pg-bar i.is-l4 { background: var(--green); }
.pg-ht textarea { min-height: 0; font-size: .85rem; overflow-wrap: anywhere; word-break: break-all; }
.pg-private { border-left: 3px solid var(--green); padding-left: 10px; }
