:root{--bg:#ededf1;--panel:#fff;--fg:#18181b;--muted:#5f5f68;--line:#d4d4da;--band:#e2e2e8;--accent:#4f46e5;--bad:#dc2626;color-scheme:light}
:root[data-theme=dark]{--bg:#0c0c0e;--panel:#1f1f25;--fg:#f4f4f5;--muted:#a1a1aa;--line:#34343c;--band:#151519;--accent:#818cf8;--bad:#f87171;color-scheme:dark}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0c0c0e;--panel:#1f1f25;--fg:#f4f4f5;--muted:#a1a1aa;--line:#34343c;--band:#151519;--accent:#818cf8;--bad:#f87171;color-scheme:dark}}
*{box-sizing:border-box;margin:0}
:root{--gut:clamp(16px,3vw,72px);--brand:#4f46e5;--hi:#fbbf24;--hiink:#18181b}
html{height:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{min-height:100%;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
/* The header and the two boxes fill the first screen; the About section follows below */
#first{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
#top{position:relative;isolation:isolate}
#top::before{content:"";position:absolute;top:0;right:0;bottom:0;left:calc(var(--bgx,60%) + 16px);z-index:-1;background:url(bg.7f5e0865.webp) left top/auto 100% repeat-x;-webkit-mask-image:linear-gradient(to right,transparent,#000 min(420px,60%));mask-image:linear-gradient(to right,transparent,#000 min(420px,60%));pointer-events:none;animation:bgin 1.2s ease-out both}
@media (max-width:1199px){#top::before{display:none}}
@keyframes bgin{from{opacity:0}}
header{padding:clamp(16px,1.6vw,32px) var(--gut);display:flex;align-items:center;gap:10px}
.brand{font-size:18px;font-weight:600;letter-spacing:-.01em}
/* Page-coloured halo so the header buttons stand clear of the background text */
.acts{margin-left:auto;display:flex;gap:10px;border-radius:12px;background:var(--bg);box-shadow:0 0 20px 16px var(--bg)}
/* Jump links to the About and Privacy sections */
.jump{display:flex;gap:10px}
.jump a{display:flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid var(--brand);border-radius:6px;background:var(--brand);color:#fff;font-size:12px;font-weight:500;text-decoration:none}
.jump a:hover,.jump a:focus-visible{border-color:var(--hi)}
.jump a:hover,.jump a:focus-visible{color:var(--hiink);background:var(--hi)}
#ho{display:flex;align-items:center;gap:6px;height:32px}
#ho svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#theme{display:grid;place-items:center;width:32px;height:32px;padding:0}
#theme svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sun,[data-theme=dark] .moon{display:none}
[data-theme=dark] .sun{display:block}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .moon{display:none}:root:not([data-theme=light]) .sun{display:block}}
#intro{padding:clamp(4px,.8vw,20px) var(--gut) clamp(24px,2.2vw,48px)}
h1{font-size:clamp(26px,2.3vw,44px);font-weight:700;line-height:1.15;letter-spacing:-.025em;margin-bottom:.3em}
#intro p{max-width:72ch;font-size:clamp(14px,.85vw,17px);color:var(--muted);text-wrap:pretty}
main{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2.6vw,64px);padding:0 var(--gut) clamp(20px,2vw,40px)}
section{position:relative;container-type:inline-size;display:flex;flex-direction:column;min-height:40vh;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:border-color .15s}
section:focus-within{border-color:var(--accent)}
section.bad{border-color:var(--bad)}
section>:not(.tag){position:relative}
.tag{position:absolute;left:0;bottom:0;padding:0 .25em .12em;font-size:clamp(32px,12cqi,168px);font-weight:800;line-height:1;letter-spacing:-.04em;white-space:nowrap;color:var(--accent);opacity:.14;pointer-events:none;user-select:none}
#bp .tag{font:800 clamp(28px,10cqi,148px)/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:-.02em}
section:has(textarea:not(:placeholder-shown)) .tag,#tp.file .tag,#tp.jwt .tag{opacity:.06}
section.bad .tag{color:var(--bad)}
.bar{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
h2{font-size:inherit;font-weight:600;color:var(--fg)}
.cnt{margin-right:auto;font-size:12px;font-variant-numeric:tabular-nums}
button,select{font:inherit;font-size:12px;font-weight:500;color:#fff;background:var(--brand);border:1px solid var(--brand);border-radius:6px;padding:3px 10px;cursor:pointer}
button{display:inline-flex;align-items:center;gap:5px}
.i{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
select{padding:2px 4px}
/* Amber highlight: hover and keyboard focus only */
button:hover,select:hover,button:focus-visible,select:focus-visible{color:var(--hiink);background:var(--hi);border-color:var(--hi)}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--hi);outline-offset:0;box-shadow:0 0 0 6px var(--hiink)}
option{background:var(--panel);color:var(--fg)}
body.drag #tp{border-color:var(--accent);border-style:dashed}
#tp.file [data-copy]{display:none}
#fc{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:16px;text-align:center}
#fc[hidden]{display:none}
#fp{max-width:100%;max-height:200px;border-radius:6px;margin-bottom:8px}
#fn{font-weight:600;word-break:break-all}
#fm{font-size:13px;color:var(--muted)}
#fd{margin-top:10px}
#jv{flex:1;padding:4px 12px 12px;overflow:auto}
#jv[hidden]{display:none}
#jv h3{font-size:12px;font-weight:600;color:var(--muted);margin:10px 0 4px;text-transform:uppercase;letter-spacing:.04em}
#jv pre{font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-all;padding:10px;border:1px solid var(--line);border-radius:6px}
#jx{list-style:none;padding:0;font-size:13px}
#jx .bad{color:var(--bad)}
#jv .note{margin-top:10px;font-size:12px;color:var(--muted)}
textarea{flex:1;width:100%;padding:12px;border:0;outline:0;resize:none;background:none;color:inherit;font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
textarea::placeholder{color:var(--muted)}
.bad textarea::placeholder{color:var(--bad)}
#b64{word-break:break-all}
.nojs{margin-bottom:16px;padding:0 var(--gut)}
.nojs p{padding:12px 16px;border:1px solid var(--accent);border-radius:10px;background:var(--panel);font-size:14px;color:var(--muted)}
.nojs strong{color:var(--fg)}
footer{display:flex;justify-content:flex-end;padding:clamp(16px,1.6vw,32px) calc(var(--gut) + 56px) clamp(16px,1.6vw,32px) var(--gut);font-size:12px;color:var(--muted)}
footer a{color:inherit;text-decoration:none}
footer a:hover{color:var(--fg);text-decoration:underline}
dialog{position:fixed;inset:auto 0 0;margin:0 auto;padding:0;width:min(640px,100%);max-width:100%;max-height:85vh;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--panel);color:var(--fg);animation:up .25s ease-out}
dialog.out{animation:down .2s ease-in forwards}
dialog::backdrop{background:rgba(0,0,0,.4)}
dialog>div{padding:20px 20px 28px}
dialog .bar{padding:0 0 12px;margin-bottom:16px}
dialog h2{font-size:16px;margin-right:auto}
h3{font-size:14px;font-weight:600;margin:16px 0 4px}
dialog p{font-size:14px;color:var(--muted)}
dialog ul{padding-left:18px;font-size:14px;color:var(--muted)}
dialog li+li{margin-top:6px}
dialog strong{color:var(--fg);font-weight:600}
#hd{inset:0;margin:auto;width:min(720px,calc(100% - 32px));max-height:calc(100% - 32px);border-bottom:1px solid var(--line);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:pop .18s ease-out}
#hd.out{animation:unpop .15s ease-in forwards}
#hd>div{padding:24px 28px 28px}
#hd ul{font-size:15px;line-height:1.6}
#hd li+li{margin-top:10px}
#hd .lead{margin-bottom:16px;padding:10px 14px;border:1px solid var(--accent);border-radius:8px;font-size:15px;color:var(--fg)}
@keyframes pop{from{opacity:0;transform:scale(.96)}}
@keyframes unpop{to{opacity:0;transform:scale(.96)}}
dialog a{color:var(--accent)}
@keyframes up{from{transform:translateY(100%)}}
@keyframes down{to{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){dialog,dialog.out,#hd,#hd.out{animation-duration:.01s}#totop{transition:none}#top::before{animation:none}}
@media (max-width:480px){.cnt{display:none}h2{margin-right:auto}}
@media (max-width:720px){main{grid-template-columns:minmax(0,1fr)}section{min-height:30vh}footer{justify-content:center;padding-right:var(--gut)}.jump a{width:32px;padding:0;justify-content:center}.jump span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
#totop{position:fixed;right:var(--gut);bottom:clamp(16px,1.6vw,32px);z-index:10;width:44px;height:44px;padding:0;justify-content:center;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s}
#totop .i{width:20px;height:20px}
#totop.on{opacity:1;visibility:visible;transform:none}
/* Full-width bands separate the About and Privacy sections */
.info{padding:clamp(40px,4.5vw,96px) var(--gut);scroll-margin-top:0}
#about{background:var(--panel)}
#privacy{background:var(--band)}
.info>h2{font-size:clamp(22px,1.7vw,32px);font-weight:700;letter-spacing:-.02em;margin-bottom:clamp(20px,2vw,40px)}
.qa{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:clamp(24px,2.6vw,56px) clamp(24px,3.5vw,72px)}
@media (min-width:1400px){.qa{grid-template-columns:repeat(4,minmax(0,1fr))}}
.qa a{color:var(--accent);border-radius:2px}
.qa h3{margin:0 0 6px;font-size:clamp(15px,.85vw,18px)}
.qa p{max-width:68ch;font-size:clamp(14px,.8vw,16px);line-height:1.65;color:var(--muted);text-wrap:pretty}
@media (min-width:1200px){#intro{display:flex;align-items:center;gap:clamp(32px,4vw,96px)}h1{margin:0;flex:none}#intro p{padding-left:clamp(32px,4vw,96px);border-left:1px solid var(--line)}}
@media (min-width:2400px){body{font-size:17px}.bar{font-size:14px}button,select{font-size:13px}textarea{font-size:16px}.brand{font-size:20px}}
