/* Страница «Обернуть текст в HTML-теги»: класс .t-wraphtml на <body> (изолировано от остальных макетов) */
.t-wraphtml [hidden]{display:none!important}
.t-wraphtml .wh-head{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between;margin-bottom:12px}
.t-wraphtml .wh-seg,.t-wraphtml .wh-tabs{display:flex;flex-wrap:wrap;gap:4px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:3px}
.t-wraphtml .wh-seg button,.t-wraphtml .wh-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-wraphtml .wh-seg button:hover,.t-wraphtml .wh-tabs button:hover{color:var(--ac)}
.t-wraphtml .wh-seg button.on,.t-wraphtml .wh-tabs button.on{background:var(--ac);color:var(--onac,#fff)}
.t-wraphtml .wh-hd{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.t-wraphtml .wh-hd label{font-size:13.5px;font-weight:700}
.t-wraphtml .wh-hd span{font-size:12.5px;color:var(--mu)}
.t-wraphtml .lb{display:block;margin-top:16px}
.t-wraphtml .wh-acts{display:flex;gap:8px;flex-wrap:wrap}
.t-wraphtml .wh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.t-wraphtml .wh-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-wraphtml .wh-fs legend{font:700 12.5px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:var(--mu);padding:0 8px}
.t-wraphtml .wh-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.t-wraphtml .wh-f label{font-size:13px;font-weight:600}
.t-wraphtml .wh-f select,.t-wraphtml .wh-f input[type=text],.t-wraphtml .wh-f input[type=number]{width:100%;min-width:0;box-sizing:border-box}
.t-wraphtml .wh-ckg{display:grid;gap:8px}
.t-wraphtml .wh-rc{margin-top:16px}
.t-wraphtml .wh-stats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.t-wraphtml .wh-st{border:1px solid var(--line);border-radius:12px;padding:8px 16px;min-width:100px}
.t-wraphtml .wh-st b{display:block;font:800 20px/1.2 ui-monospace,monospace}
.t-wraphtml .wh-st span{font-size:12.5px;color:var(--mu)}
.t-wraphtml .wh-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end;margin-bottom:12px}
.t-wraphtml .wh-opts .ck{align-self:center}
.t-wraphtml .bad-msg{display:block;font-size:12.5px;color:var(--err);margin-top:8px}
.t-wraphtml .tbw{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.t-wraphtml .wh-tb{width:100%;border-collapse:collapse;font-size:14px}
.t-wraphtml .wh-tb th{background:var(--bg);text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--mu);padding:9px 12px}
.t-wraphtml .wh-tb td{padding:9px 12px;border-top:1px solid var(--line);vertical-align:top}
.t-wraphtml .wh-tb td:nth-child(2){min-width:230px}
.t-wraphtml .wh-tb td code{white-space:pre-wrap;overflow-wrap:break-word}
.t-wraphtml .wh-tb td:first-child{white-space:nowrap}
.t-wraphtml .wh-h3{font-size:15.5px;margin:18px 0 8px}
.t-wraphtml .tbw+.wh-h3{margin-top:22px}
.t-wraphtml .win pre{white-space:pre;overflow-x:auto}
.t-wraphtml .step,.t-wraphtml .lead,.t-wraphtml .card p{min-width:0;overflow-wrap:break-word}
@media(max-width:760px){.t-wraphtml .wh-grid{grid-template-columns:minmax(0,1fr)}.t-wraphtml .wh-seg button,.t-wraphtml .wh-tabs button{padding:7px 10px}}
/* поля ввода: как на остальных страницах раздела (tool-textmod.css) */
.t-wraphtml 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-wraphtml textarea:focus{border-color:var(--ac);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 20%,transparent)}
.t-wraphtml textarea::placeholder{color:var(--mu);opacity:.75}
.t-wraphtml textarea#wh-out{background:var(--navy);color:#e6edf7;border-color:var(--wl);min-height:260px}
.t-wraphtml .wh-f input[type=text],.t-wraphtml .wh-f input[type=number]{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-wraphtml .wh-f input[type=text]:hover,.t-wraphtml .wh-f input[type=number]:hover{border-color:color-mix(in srgb,var(--ac) 55%,var(--line))}
.t-wraphtml .wh-f input[type=text]:focus,.t-wraphtml .wh-f input[type=number]:focus{border-color:var(--ac);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 20%,transparent)}
@media(max-width:700px){.t-wraphtml textarea{min-height:170px}}
.t-wraphtml .wh-tb td:nth-child(2),.t-wraphtml .wh-tb td:nth-child(3){min-width:150px}
.t-wraphtml .wh-tb td:nth-child(4){min-width:200px}
.t-wraphtml .wh-tb td:first-child{white-space:normal}
.t-wraphtml .wh-f input[type=text],.t-wraphtml .wh-f input[type=number]{width:100%;box-sizing:border-box}
.t-wraphtml .wh-hint{margin:0}
.t-wraphtml .wh-tb td:first-child{white-space:nowrap}
.t-wraphtml iframe#wh-pv{display:block;width:100%;height:300px;box-sizing:border-box;border:1.5px solid var(--line);border-radius:12px;background:#fff}
.t-wraphtml textarea#wh-out{white-space:pre}
.t-wraphtml .wh-hint{margin:0}
.t-wraphtml .wh-tb td code{white-space:pre-wrap;overflow-wrap:break-word}
