/* ToleHub XML to JSON Converter — plugin-scoped styles */
body:has(#thxj-converter) main.th-full-page {width:min(100%,1320px)!important;max-width:1320px!important;margin-inline:auto!important;box-sizing:border-box;min-width:0}
body:has(#thxj-converter) main.th-full-page .th-page-title {width:calc(100% - 36px)!important;max-width:1170px!important;margin:38px auto 16px!important;padding:0!important;font-size:clamp(31px,3.4vw,44px)!important;font-weight:800!important;letter-spacing:-.045em!important;line-height:1.15!important}
body:has(#thxj-converter) main.th-full-page .wp-block-post-content{width:100%!important;max-width:none!important;box-sizing:border-box;min-width:0}
.thxj{--ink:#0b1f3b;--teal:#0d9488;--border:#dbe7ed;--muted:#63768a;max-width:1170px!important;margin:0 auto 70px!important;padding:0 18px!important;box-sizing:border-box;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.thxj *,.thxj *::before,.thxj *::after{box-sizing:border-box}
.thxj-eyebrow{margin:0 0 10px!important;font-size:11px!important;font-weight:800!important;color:#067c72!important;letter-spacing:.11em;text-transform:uppercase}
.thxj-intro{font-size:15px!important;line-height:1.75!important;max-width:830px;margin:0 0 26px!important;color:#5b7184!important}
.thxj-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:22px;align-items:stretch;width:100%;}
.thxj-card{border:1px solid var(--border);border-radius:20px;background:white;padding:30px;min-width:0;box-shadow:0 10px 34px rgba(11,31,59,.045)}
.thxj-input-card,.thxj-result-card{display:flex;flex-direction:column;}
.thxj-result-card{background:#0b1f3b;border-color:#254358;color:#f6ffff}
.thxj-card h2{font-size:25px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:-.035em!important;color:inherit!important;margin:0 0 9px!important}
.thxj-card-header{margin-bottom:18px;min-height:70px}
.thxj-card-header p{color:#65798c;font-size:13px;line-height:1.65;margin:0!important}
.thxj-result-card .thxj-card-header p{color:#bfd5df}
.thxj-field-label{display:block;font-size:13px;font-weight:750;margin:0 0 10px;color:#1b3750}
.thxj textarea{display:block;min-width:0;width:100%;max-width:100%;padding:15px;border:1px solid #c9dbe4;background:#f9fbfd;color:#14334b;border-radius:12px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12.5px;line-height:1.65;tab-size:2;white-space:pre;outline:none}
.thxj-input-card textarea{min-height:320px;height:358px}
.thxj-result-card textarea{background:#09283b;color:#d4f8f0;border-color:#2e566e;min-height:350px;height:390px;resize:vertical;flex:1 1 auto}
.thxj textarea:focus,.thxj select:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.16)}
.thxj-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px 18px;margin:20px 0 12px}
.thxj-select-label{display:flex;flex-wrap:wrap;gap:9px;align-items:center;grid-column:1/-1;font-size:13px;font-weight:750;color:#23415a}
.thxj-select-label select{min-height:40px;border:1px solid #ccdce4;border-radius:9px;padding:8px 12px;background:#fff;color:#18394c;font-family:inherit;font-size:13px;min-width:130px;max-width:220px}
.thxj-check{display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.55;font-weight:650;color:#2c495f;cursor:pointer}
.thxj-check input{accent-color:#0d9488;width:17px;height:17px;flex:0 0 17px;margin:0}
.thxj-small{font-size:12px!important;color:#60778b!important;line-height:1.6!important;margin:0 0 18px!important}
.thxj-input-actions,.thxj-result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;}
.thxj-input-actions button,.thxj-input-actions .thxj-upload,.thxj-result-actions button{appearance:none;display:flex;align-items:center;justify-content:center;position:relative;min-height:46px;border-radius:10px;padding:11px 13px;font-size:13px;font-family:inherit;font-weight:800;line-height:1.4;cursor:pointer;text-align:center;white-space:normal;border:0}
.thxj-primary{background:#0d9488!important;color:#fff!important}
.thxj-secondary,.thxj-upload{background:#edf7f6!important;color:#096c62!important;border:1px solid #d0e8e4!important}
.thxj-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.thxj-upload:focus-within{outline:3px solid rgba(13,148,136,.25);outline-offset:2px}
.thxj-upload input:focus-visible{outline:none}
.thxj-result-card .thxj-copy{background:#19bfae;color:#042c31}
.thxj-result-card .thxj-download{background:#2c5067;color:#fff}
.thxj button:disabled{opacity:.52;cursor:not-allowed}
.thxj-error{background:#fff0ec;color:#8a3624;padding:13px;border-radius:10px;font-size:13px!important;line-height:1.55!important;margin:15px 0 0!important}
.thxj [hidden]{display:none!important}
.thxj-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 17px}
.thxj-stats div{background:#14354a;border:1px solid #2d4b5c;border-radius:10px;padding:12px 10px;min-width:0}
.thxj-stats small{display:block;color:#b4d1df;font-size:11px;margin-bottom:5px}
.thxj-stats strong{display:block;color:#fff;font-size:18px;font-weight:800;overflow-wrap:anywhere}
.thxj-result-actions{margin-top:17px}
.thxj-status{min-height:20px;color:#91e7d6!important;margin:12px 0 0!important;font-size:12px!important;line-height:1.5!important}
.thxj-guide{background:#f8fbfc;border:1px solid #e0eaf0;border-radius:18px;margin:34px 0 0;padding:32px}
.thxj-guide h2{font-size:24px!important;font-weight:800!important;line-height:1.2!important;color:#0b1f3b!important;margin:0 0 23px!important}
.thxj-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.thxj-guide-grid > div{min-width:0}
.thxj-guide h3{font-size:17px!important;font-weight:750!important;color:#153249!important;line-height:1.3!important;margin:0 0 8px!important}
.thxj-guide p{color:#5b7286;font-size:14px;line-height:1.75;margin:0 0 10px}
.thxj-guide code{border-radius:5px;background:#e7f3f2;padding:2px 5px;color:#087b72}
.thxj-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:880px){.thxj-grid{grid-template-columns:minmax(0,1fr)}.thxj-card{padding:26px}.thxj-card-header{min-height:0}.thxj-guide-grid{grid-template-columns:1fr}.thxj-result-card textarea{height:320px}}
@media(max-width:600px){body:has(#thxj-converter) main.th-full-page .th-page-title{font-size:clamp(27px,7vw,36px)!important;margin:25px auto 14px!important;width:calc(100% - 30px)!important}.thxj{padding:0 15px!important;margin-bottom:45px!important}.thxj-grid{gap:17px}.thxj-card{padding:20px;border-radius:15px}.thxj-options{grid-template-columns:1fr;gap:14px}.thxj-select-label{grid-column:1}.thxj-input-card textarea{height:270px;min-height:190px}.thxj-result-card textarea{height:290px;min-height:240px}.thxj-guide{padding:23px}.thxj-intro{font-size:14px!important}}
@media(max-width:365px){.thxj-input-actions,.thxj-result-actions{grid-template-columns:1fr}}
