/* copy-paste.online /tools */
.TOOLS section:not(.TAPP){padding:0}
.TOOLS{max-width:1180px;--tp:#902ef2;--tp2:#cd4ad2;--tl:#e7e3ef;--tm:#6b6478}
.TBC{font-size:13px;color:var(--tm);display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.TBC a{color:var(--tm);text-decoration:none}.TBC a:hover{color:var(--tp)}
.TBC b{color:#333;font-weight:600}
.THERO{margin:6px 0 18px}
.THERO h1{font-size:30px;font-weight:800;margin:0 0 8px;letter-spacing:-.3px}
.THERO h1 i{background:linear-gradient(90deg,var(--tp2),var(--tp));-webkit-background-clip:text;background-clip:text;color:transparent}
.THERO p{color:#4a4555;max-width:820px;margin:0;font-size:16px;line-height:1.55}

.TGRID{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.TCARD{display:flex;gap:14px;align-items:flex-start;padding:18px;border:1px solid var(--tl);border-radius:14px;background:#fff;color:#222;text-decoration:none;transition:.18s;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.TCARD:hover{border-color:#cfb6f7;box-shadow:0 6px 18px rgba(144,46,242,.12);transform:translateY(-2px);color:#222}
.TCARD>i{font-size:26px;width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--tp2),var(--tp))}
.TCARD b{display:block;font-size:16px;margin-bottom:4px}
.TCARD small{display:block;color:var(--tm);font-size:13px;line-height:1.45}
.TSMALL{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.TSMALL .TCARD{padding:10px 12px;align-items:center;gap:10px}
.TSMALL .TCARD>i{font-size:16px;width:32px;height:32px;border-radius:9px}
.TSMALL .TCARD b{font-size:14px;margin:0}

.TAPP{background:#fff;border:1px solid var(--tl);border-radius:16px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.TBAR{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin-bottom:12px;font-size:14px;color:#333}
.TBAR label{display:inline-flex;gap:6px;align-items:center;cursor:pointer;margin:0;user-select:none}
.TBAR input[type=checkbox]{accent-color:var(--tp);width:16px;height:16px}
.TSEG{display:inline-flex;border:1px solid var(--tl);border-radius:10px;overflow:hidden}
.TSEG button{border:0;background:#fff;padding:7px 16px;font-weight:600;font-size:14px;color:#555}
.TSEG button.on{background:linear-gradient(90deg,var(--tp2),var(--tp));color:#fff}
.TAPP.DEC .TENCONLY{display:none}
.TPANES{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.TPANE{display:flex;flex-direction:column;min-width:0}
.TPH{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:14px}
.TPH span{display:flex;gap:6px}
.TPANE textarea{width:100%;min-height:340px;resize:vertical;border:1px solid var(--tl);border-radius:12px;padding:12px;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#fbfaFD;color:#222;outline:none;white-space:pre;overflow:auto}
.TPANE textarea:focus{border-color:#b98af6;box-shadow:0 0 0 3px rgba(144,46,242,.12);background:#fff}
#TOUT{background:#f6f4fa}
.TBTN{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--tl);background:#fff;color:#444;border-radius:9px;padding:5px 10px;font-size:13px;cursor:pointer;margin:0;line-height:1.4}
.TBTN em{font-style:normal}
.TBTN:hover{border-color:#cfb6f7;color:var(--tp)}
.TPRI{background:linear-gradient(90deg,var(--tp2),var(--tp));color:#fff;border:0;font-weight:700}
.TPRI:hover{color:#fff;filter:brightness(1.07)}
.TRUN{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:12px}
.TGO{padding:10px 26px;font-size:15px;border-radius:11px}
.TSTAT{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:14px;color:#2b7a4b;font-weight:600}
.TSTAT.ERR{color:#c62828}

.TIP{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:16px;align-items:start}
.TIPBOX{background:linear-gradient(135deg,var(--tp2),var(--tp));color:#fff;border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.TIPBOX small{opacity:.85;font-size:13px}
.TIPADDR{font:700 30px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}
.TBADGE{background:rgba(255,255,255,.22);border-radius:20px;padding:2px 10px;font-size:12px;font-weight:700}
.TIPBOX .TPRI{background:#fff;color:var(--tp)}
.TIPT{width:100%;border:1px solid var(--tl);border-radius:14px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff;font-size:14px}
.TIPT th,.TIPT td{padding:10px 14px;border-bottom:1px solid var(--tl);vertical-align:top}
.TIPT tr:last-child th,.TIPT tr:last-child td{border-bottom:0}
.TIPT th{width:160px;color:var(--tm);font-weight:600;background:#faf8fd}
.TIPT td{word-break:break-word}

.TINFO{margin:28px 0 8px;max-width:860px;color:#3d3847;line-height:1.6}
.TINFO h2,.TMORE h2{font-size:20px;font-weight:700;margin:0 0 10px;color:#222}
.TINFO ol{padding-left:22px;list-style:decimal}
.TMORE{margin:22px 0 30px}

@media (max-width:767px){
	.THERO h1{font-size:24px}
	.THERO p{font-size:15px}
	.TPANES,.TIP{grid-template-columns:1fr}
	.TPANE textarea{min-height:200px}
	.TPH em{display:none}
	.TAPP{padding:10px;border-radius:12px}
	.TIPADDR{font-size:24px}
	.TIPT th{width:110px}
}

/* network tools */
.TQ{display:flex;gap:8px;flex-wrap:wrap}
.TQIN,.TQSEL{flex:1 1 260px;min-width:0;height:46px;border:1px solid var(--tl);border-radius:11px;padding:0 14px;font:15px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#fbfafd;outline:none;color:#222}
.TQIN:focus,.TQSEL:focus{border-color:#b98af6;box-shadow:0 0 0 3px rgba(144,46,242,.12);background:#fff}
.TQSEL{flex:0 0 150px;font-family:inherit;cursor:pointer}
.TQPORTS{flex:0 1 200px}
.TNET .TGO{height:46px;padding:0 24px}
.TNET .TRUN{margin-top:8px;min-height:6px}
.TCHIPS{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.TCHIPS button{border:1px solid var(--tl);background:#fff;border-radius:20px;padding:4px 11px;font-size:12px;color:#555;cursor:pointer}
.TCHIPS button b{color:#222}
.TCHIPS button.on{background:#f1e6fe;border-color:#c9a5f7;color:var(--tp)}
.TCHIPS button.on b{color:var(--tp)}
.TRES{margin-top:10px}
.TBIG{font-size:17px;margin:4px 0 12px;word-break:break-all}
.TBIG i{color:var(--tp);margin-right:4px}
.TBIG.TOK i{color:#1e9e5a}
.TKV,.TDNS{width:100%;border:1px solid var(--tl);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden;font-size:14px;background:#fff}
.TKV th,.TKV td,.TDNS th,.TDNS td{padding:9px 12px;border-bottom:1px solid var(--tl);vertical-align:top;text-align:left}
.TKV tr:last-child th,.TKV tr:last-child td,.TDNS tr:last-child td{border-bottom:0}
.TKV th{width:170px;color:var(--tm);font-weight:600;background:#faf8fd}
.TKV td{word-break:break-word}
.TDNS thead th{background:#faf8fd;color:var(--tm);font-weight:600}
.TDNS .TV{word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
.TRT{display:inline-block;min-width:48px;text-align:center;background:#f1e6fe;color:var(--tp);border-radius:6px;padding:1px 6px;font-weight:700;font-size:12px}
.TSRC{font-size:12px;color:var(--tm);margin:8px 0 0}
.TEMPTY{color:var(--tm)}
.TRAW{margin-top:12px;border:1px solid var(--tl);border-radius:12px;background:#faf8fd}
.TRAW summary{cursor:pointer;padding:10px 14px;font-weight:600;font-size:14px}
.TRAWBAR{display:flex;justify-content:flex-end;padding:0 10px}
.TRAW pre{margin:6px 0 0;padding:12px 14px;max-height:420px;overflow:auto;font-size:12.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word;background:#fff;border-top:1px solid var(--tl);border-radius:0 0 12px 12px}
.TPORTS{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.TPORT{border:1px solid var(--tl);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:2px;background:#fff;border-left-width:5px}
.TPORT b{font-size:20px}
.TPORT span{font-size:12px;color:var(--tm);min-height:15px}
.TPORT em{font-style:normal;font-weight:700;font-size:14px}
.TPORT.open{border-left-color:#1e9e5a}.TPORT.open em{color:#1e9e5a}
.TPORT.closed{border-left-color:#d32f2f}.TPORT.closed em{color:#d32f2f}
.TPORT.filtered{border-left-color:#f59e0b}.TPORT.filtered em{color:#b26a00}
@media (max-width:767px){
	.TQSEL,.TQPORTS{flex:1 1 120px}
	.TNET .TGO{flex:1 1 100%;justify-content:center}
	.TKV th{width:105px}
	.TDNS th:nth-child(2),.TDNS td:nth-child(2){display:none}
}
