:root{--ink:#17232f;--muted:#657382;--line:#dfe5e9;--paper:#f6f7f4;--white:#fff;--navy:#102b3f;--teal:#17a398;--teal-dark:#0b7d75;--soft:#eaf7f5;--shadow:0 18px 50px rgba(15,42,58,.1)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(circle at 85% -10%,rgba(23,163,152,.16),transparent 30rem),var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}button,textarea,select{font:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;max-width:1184px;margin:auto;padding:0 28px}.brand{display:flex;align-items:center;gap:10px;color:var(--navy);font-weight:760;text-decoration:none}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:white;background:var(--navy);font-family:Georgia,serif}.privacy-note{color:var(--muted);font-size:13px;font-weight:650}main{width:min(1184px,calc(100% - 40px));margin:0 auto 70px}.tool,.article,.faq{background:var(--white);border:1px solid rgba(16,43,63,.09);border-radius:20px;box-shadow:var(--shadow)}.tool{overflow:hidden}.tool-head{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:30px 34px 24px;border-bottom:1px solid var(--line)}.eyebrow{margin:0 0 8px;color:var(--teal-dark);font-size:11px;font-weight:800;letter-spacing:.16em}h1,h2,p{margin-top:0}h1{margin:0;color:var(--navy);font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5vw,58px);font-weight:500;line-height:1;letter-spacing:-.04em}h2{color:var(--navy);font-size:22px;letter-spacing:-.02em}.encoding-field{min-width:270px}.encoding-field span{display:block;margin-bottom:6px;color:var(--navy);font-size:12px;font-weight:750}select,textarea{width:100%;color:var(--ink);background:white;border:1px solid #cad3d9;border-radius:10px;outline:none}select{min-height:44px;padding:10px 12px}.tool-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.input-card,.result-card{min-width:0;padding:28px 34px 34px}.result-card{border-left:1px solid var(--line);background:#fbfcfb}.section-title,.result-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2,.result-actions h2{margin:0 0 13px}textarea{display:block;min-height:290px;padding:16px;resize:vertical}.input-help,.status{color:var(--muted);font-size:11px}.input-help{margin:10px 0 16px}.primary-button{width:100%;min-height:46px;border:0;border-radius:10px;color:white;background:var(--teal-dark);font-weight:780;cursor:pointer}.primary-button:hover{background:var(--navy)}.quiet-button{border:0;padding:7px 2px;color:var(--teal-dark);background:transparent;font-size:12px;font-weight:760;cursor:pointer}.quiet-button:disabled{color:#a8b1b7;cursor:not-allowed}.summary{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:24px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.summary div{padding:14px;border-right:1px solid var(--line)}.summary div:last-child{border:0}.summary strong,.summary span{display:block}.summary strong{color:var(--navy);font-size:24px}.summary span{color:var(--muted);font-size:10px}.result-wrap{overflow:auto;max-height:310px;border:1px solid var(--line);border-radius:10px;background:white}table{width:100%;border-collapse:collapse;min-width:560px}th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:11px}th{position:sticky;top:0;color:var(--muted);background:#f4f7f6;text-transform:uppercase;letter-spacing:.05em}.preview{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty{padding:40px 16px;text-align:center;color:var(--muted)}.status{margin:12px 0 0}.article,.faq{margin-top:18px;padding:32px 36px}.article h2{margin-top:28px}.article p,.faq p{color:var(--muted);font-size:14px}.article a{color:var(--teal-dark)}code{padding:.12em .35em;border-radius:5px;background:var(--soft)}details{border-top:1px solid var(--line)}summary{padding:16px 2px;color:var(--navy);font-weight:720;cursor:pointer}details p{padding:0 2px 14px}footer{display:flex;justify-content:space-between;width:min(1184px,calc(100% - 40px));margin:0 auto;padding:24px 0 40px;color:var(--muted);font-size:11px}footer nav{display:flex;gap:14px}footer a{color:var(--muted);text-decoration:none}#toast{position:fixed;left:50%;bottom:24px;translate:-50% 20px;padding:10px 15px;color:white;background:var(--ink);border-radius:9px;opacity:0;pointer-events:none;transition:.2s;font-size:12px}#toast.show{opacity:1;translate:-50% 0}
@media(max-width:780px){.topbar{height:58px;padding:0 15px}.privacy-note{font-size:11px}main{width:min(100% - 20px,620px)}.tool-head{display:block;padding:23px 20px}.encoding-field{display:block;min-width:0;margin-top:18px}.tool-grid{grid-template-columns:1fr}.input-card,.result-card{padding:22px 20px 25px}.result-card{border-left:0;border-top:1px solid var(--line)}textarea{min-height:220px}.article,.faq{padding:25px 20px}.summary strong{font-size:20px}footer{width:calc(100% - 20px);gap:14px;flex-direction:column}footer nav{flex-wrap:wrap}}
@media(max-width:430px){h1{font-size:39px}.privacy-note{display:none}.summary div{padding:10px 8px}.summary strong{font-size:18px}.summary span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
