/* Страница «Генератор htpasswd»: класс .t-htpasswd на <body> (изолировано от остальных макетов) */
.t-htpasswd [hidden]{display:none!important}
.t-htpasswd .hp-head{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between;margin-bottom:12px}
.t-htpasswd .hp-seg,.t-htpasswd .hp-tabs{display:flex;flex-wrap:wrap;gap:4px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:3px}
.t-htpasswd .hp-seg button,.t-htpasswd .hp-tabs button{border:0;background:none;color:var(--tx);border-radius:9px;padding:7px 13px;font:600 13px system-ui,sans-serif;cursor:pointer;transition:.15s}
.t-htpasswd .hp-seg button:hover,.t-htpasswd .hp-tabs button:hover{color:var(--ac)}
.t-htpasswd .hp-seg button.on,.t-htpasswd .hp-tabs button.on{background:var(--ac);color:var(--onac,#fff)}
.t-htpasswd .hp-hd{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.t-htpasswd .hp-hd label{font-size:13.5px;font-weight:700}
.t-htpasswd .hp-hd span{font-size:12.5px;color:var(--mu)}
.t-htpasswd .lb{display:block;margin-top:16px}
.t-htpasswd .hp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.t-htpasswd .hp-fs{border:1px solid var(--line);border-radius:14px;padding:12px 16px 16px;margin:0;min-width:0;display:grid;gap:12px;align-content:start}
.t-htpasswd .hp-fs legend{font:700 12.5px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:var(--mu);padding:0 8px}
.t-htpasswd .hp-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.t-htpasswd .hp-f label{font-size:13px;font-weight:600}
.t-htpasswd .hp-f select,.t-htpasswd .hp-f input[type=text],.t-htpasswd .hp-f input[type=number],.t-htpasswd .hp-f input[type=password]{width:100%;min-width:0;box-sizing:border-box}
.t-htpasswd .hp-ckg{display:grid;gap:8px}
.t-htpasswd .hp-rc{margin-top:16px}
.t-htpasswd .hp-stats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.t-htpasswd .hp-st{border:1px solid var(--line);border-radius:12px;padding:8px 16px;min-width:100px}
.t-htpasswd .hp-st b{display:block;font:800 20px/1.2 ui-monospace,monospace}
.t-htpasswd .hp-st span{font-size:12.5px;color:var(--mu)}
.t-htpasswd .hp-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end;margin-bottom:12px}
.t-htpasswd .hp-opts .ck{align-self:center}
.t-htpasswd .bad-msg{display:block;font-size:12.5px;color:var(--err);margin-top:8px}
.t-htpasswd .tbw{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.t-htpasswd .hp-tb{width:100%;border-collapse:collapse;font-size:14px}
.t-htpasswd .hp-tb th{background:var(--bg);text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--mu);padding:9px 12px}
.t-htpasswd .hp-tb td{padding:9px 12px;border-top:1px solid var(--line);vertical-align:top}
.t-htpasswd .hp-tb td:nth-child(2){min-width:230px}
.t-htpasswd .hp-tb td code{white-space:pre-wrap;overflow-wrap:break-word}
.t-htpasswd .hp-tb td:first-child{white-space:nowrap}
.t-htpasswd .hp-h3{font-size:15.5px;margin:18px 0 8px}
.t-htpasswd .tbw+.hp-h3{margin-top:22px}
.t-htpasswd .win pre{white-space:pre;overflow-x:auto}
.t-htpasswd .step,.t-htpasswd .lead,.t-htpasswd .card p{min-width:0;overflow-wrap:break-word}
@media(max-width:760px){.t-htpasswd .hp-grid{grid-template-columns:minmax(0,1fr)}.t-htpasswd .hp-seg button,.t-htpasswd .hp-tabs button{padding:7px 10px}}
/* поля ввода: как на остальных страницах раздела (tool-textmod.css) */
.t-htpasswd textarea{display:block;width:100%;box-sizing:border-box;font:13.5px/1.55 ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace;color:var(--tx);background:color-mix(in srgb,var(--bg) 35%,var(--card));border:1.5px solid var(--line);border-radius:12px;padding:12px;min-height:200px;resize:vertical;outline:0;transition:.15s;tab-size:4}
.t-htpasswd textarea:focus{border-color:var(--ac);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 20%,transparent)}
.t-htpasswd textarea::placeholder{color:var(--mu);opacity:.75}
.t-htpasswd .hp-f input[type=text],.t-htpasswd .hp-f input[type=number],.t-htpasswd .hp-f input[type=password]{font:500 14px ui-monospace,Menlo,monospace;color:var(--tx);background:color-mix(in srgb,var(--bg) 35%,var(--card));border:1.5px solid var(--line);border-radius:10px;padding:9px 12px;min-height:40px;outline:0;transition:border-color .15s,box-shadow .15s}
.t-htpasswd .hp-f input[type=text]:hover,.t-htpasswd .hp-f input[type=number],.t-htpasswd .hp-f input[type=password]:hover{border-color:color-mix(in srgb,var(--ac) 55%,var(--line))}
.t-htpasswd .hp-f input[type=text]:focus,.t-htpasswd .hp-f input[type=number],.t-htpasswd .hp-f input[type=password]:focus{border-color:var(--ac);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 20%,transparent)}
@media(max-width:700px){.t-htpasswd textarea{min-height:170px}}
.t-htpasswd .hp-tb td:nth-child(2),.t-htpasswd .hp-tb td:nth-child(3){min-width:150px}
.t-htpasswd .hp-tb td:nth-child(4){min-width:200px}
.t-htpasswd .hp-tb td:first-child{white-space:normal}
.t-htpasswd .hp-f input[type=text],.t-htpasswd .hp-f input[type=number],.t-htpasswd .hp-f input[type=password]{width:100%;box-sizing:border-box}
.t-htpasswd .hp-hint{margin:0}
.t-htpasswd .hp-tb td:first-child{white-space:nowrap}
.t-htpasswd .hp-hint{margin:0}
.t-htpasswd .hp-tb td code{white-space:pre-wrap;overflow-wrap:break-word}
.t-htpasswd .hp-hint{margin:0}
.t-htpasswd .hp-tb td code{white-space:pre-wrap;overflow-wrap:break-word}
.t-htpasswd .hp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;margin-bottom:12px}
.t-htpasswd .hp-pw{display:flex;gap:8px}
.t-htpasswd .hp-pw input{flex:1;min-width:0}
.t-htpasswd .hp-meter{margin:8px 0 0}
.t-htpasswd .hp-meter .hp-barw{height:8px;border-radius:99px;background:color-mix(in srgb,var(--line) 70%,transparent);overflow:hidden}
.t-htpasswd .hp-meter #hp-bar{display:block;height:100%;width:0;border-radius:99px;background:var(--mu);transition:width .2s,background .2s}
.t-htpasswd .hp-m1 #hp-bar{background:var(--err,#c0392b)}
.t-htpasswd .hp-m2 #hp-bar{background:#d98a00}
.t-htpasswd .hp-m3 #hp-bar{background:#2c9a55}
.t-htpasswd .hp-m4 #hp-bar{background:#1a7f4b}
.t-htpasswd .hp-meter #hp-mtx{display:block;margin-top:6px;font-size:12.5px;color:var(--mu)}
.t-htpasswd .hp-gen{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end;margin-top:14px}
.t-htpasswd .hp-ckr{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px}
.t-htpasswd .hp-prog{height:6px;border-radius:99px;background:color-mix(in srgb,var(--line) 70%,transparent);overflow:hidden;margin-bottom:12px}
.t-htpasswd .hp-prog span{display:block;height:100%;width:0;background:var(--ac);transition:width .1s}
.t-htpasswd textarea#hp-out{white-space:pre;min-height:150px}
.t-htpasswd textarea#hp-list{min-height:150px}
.t-htpasswd .hp-creds{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-top:14px}
.t-htpasswd .hp-creds b{display:block;margin-bottom:4px;font-size:13.5px}
.t-htpasswd .hp-creds p{margin:0 0 8px;font-size:12.5px;color:var(--mu)}
.t-htpasswd .hp-creds textarea{min-height:70px}
.t-htpasswd .hp-stat{font-size:13px;color:var(--mu);margin:0 0 10px}
.t-htpasswd .hp-vs{margin-top:12px;padding:10px 14px;border-radius:10px;border:1px solid var(--line);font-size:14px}
.t-htpasswd .hp-vs.hp-good{border-color:#2c9a55;color:#1a7f4b;background:color-mix(in srgb,#2c9a55 10%,transparent)}
.t-htpasswd .hp-vs.hp-bad{border-color:var(--err);color:var(--err);background:color-mix(in srgb,var(--err) 8%,transparent)}
.t-htpasswd textarea#hp-vh{min-height:70px;margin-bottom:12px}
@media(max-width:700px){.t-htpasswd .hp-row{grid-template-columns:minmax(0,1fr)}}
.t-htpasswd textarea#hp-out,.t-htpasswd textarea#hp-credtxt{background:var(--navy);color:#e6edf7;border-color:var(--wl)}
.t-htpasswd .hp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.t-htpasswd .hp-cfg{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.t-htpasswd .hp-cd{border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:grid;gap:10px;align-content:start;min-width:0}
.t-htpasswd .hp-cd>b{font-size:15px}
.t-htpasswd .hp-cd p{margin:0;font-size:13.5px;color:var(--mu)}
.t-htpasswd .hp-cdh{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
.t-htpasswd .hp-cdh b{font-size:16px}
.t-htpasswd .hp-bd{font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;border:1px solid var(--line);color:var(--mu)}
.t-htpasswd .hp-b4{color:#1a7f4b;border-color:#2c9a55;background:color-mix(in srgb,#2c9a55 10%,transparent)}
.t-htpasswd .hp-b3{color:#8a5a00;border-color:#d98a00;background:color-mix(in srgb,#d98a00 10%,transparent)}
.t-htpasswd .hp-b2,.t-htpasswd .hp-b1{color:var(--err);border-color:var(--err);background:color-mix(in srgb,var(--err) 8%,transparent)}
.t-htpasswd .hp-ex{display:block;width:fit-content;max-width:100%;overflow-wrap:break-word;font-size:13px}
.t-htpasswd .hp-cd dl{margin:0;display:grid;gap:2px}
.t-htpasswd .hp-cd dt{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--mu);margin-top:6px}
.t-htpasswd .hp-cd dd{margin:0;font-size:14px}
.t-htpasswd .hp-cd .win{margin:0}
.t-htpasswd .hp-cd .win pre{white-space:pre;overflow-x:auto;margin:0}
