:root{--bg:#fbfbfc;--fg:#1b1f27;--mut:#5a6270;--line:#e2e5ea;--panel:#f1f3f6;--cap:#fff;--capb:#b9bfc9;--acc:#0d63c9;--acc-bg:#e6effb;--pl:#17824f;--r:8px;color-scheme:light dark}
@media(prefers-color-scheme:dark){:root{--bg:#121418;--fg:#e9ebef;--mut:#a4acb9;--line:#2a2e36;--panel:#191c22;--cap:#23272f;--capb:#3b414c;--acc:#7cb0ff;--acc-bg:#1b2a42;--pl:#4fd093}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:1.0625rem/1.65 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
a{color:var(--acc);text-underline-offset:.15em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
.w{max-width:72rem;margin:0 auto;padding:0 1.25rem}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--fg);color:var(--bg);padding:.5rem 1rem;z-index:9}
/* header */
.hd{border-bottom:1px solid var(--line)}
.hd .w{display:flex;align-items:center;gap:1.5rem;min-height:3.75rem}
.logo{font-weight:800;font-size:1.15rem;color:var(--fg);text-decoration:none;letter-spacing:-.02em;white-space:nowrap}
.logo span{color:var(--mut);font-weight:600}
.nav{overflow-x:auto;scrollbar-width:none}
.nav ul{display:flex;gap:1.1rem;list-style:none;margin:0;padding:0;white-space:nowrap}
.nav a{color:var(--fg);text-decoration:none;font-size:.95rem}
.nav a:hover,.nav a[aria-current]{color:var(--acc)}
/* article */
main{padding:1.25rem 1.25rem 3rem}
.bc ol{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0 0 1rem;padding:0;font-size:.875rem;color:var(--mut)}
.bc li+li:before{content:"›";margin-right:.35rem}
.bc a{color:var(--mut)}
article>*{max-width:46rem}
article>.tool,article>.hub,article>.tw{max-width:none}
h1{font-size:clamp(1.75rem,1.2rem + 2.2vw,2.6rem);line-height:1.15;letter-spacing:-.025em;margin:.25rem 0 .75rem}
h2{font-size:1.45rem;line-height:1.25;letter-spacing:-.015em;margin:2.5rem 0 .6rem}
h3{font-size:1.12rem;margin:1.75rem 0 .4rem}
p,ul,ol{margin:0 0 1rem}
li{margin:.25rem 0}
.lead{font-size:1.18rem;color:var(--mut)}
.upd{font-size:.85rem;color:var(--mut)}
.note{border-left:4px solid var(--acc);background:var(--acc-bg);padding:.8rem 1rem;border-radius:0 var(--r) var(--r) 0}
/* keycap kbd – the signature element */
kbd{display:inline-block;min-width:1.7em;padding:.05em .45em;margin:0 .05em;font-family:inherit;font-weight:600;font-size:.82em;line-height:1.5;text-align:center;color:var(--fg);background:var(--cap);border:1px solid var(--capb);border-bottom-width:3px;border-radius:5px;white-space:nowrap;vertical-align:.08em}
.kc{white-space:nowrap}
/* tables */
.tw{overflow-x:auto;margin:0 0 1.25rem;border:1px solid var(--line);border-radius:var(--r)}
table{border-collapse:collapse;width:100%;font-size:.97rem}
th,td{padding:.55rem .8rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--panel);font-weight:650}
tr:last-child td{border-bottom:0}
/* copyable characters */
.ch{font-family:inherit;font-weight:500;font-size:1.25rem;line-height:1;min-width:2.4rem;height:2.4rem;padding:0 .4rem;margin:.1rem;color:var(--fg);background:var(--cap);border:1px solid var(--capb);border-bottom-width:3px;border-radius:6px;cursor:pointer}
.ch:hover{border-color:var(--acc)}
.ch:active{transform:translateY(1px)}
.chars{display:flex;flex-wrap:wrap;gap:.25rem;margin:0 0 1rem}
/* hub */
.hub{display:grid;grid-template-columns:repeat(auto-fill,minmax(15.5rem,1fr));gap:1rem 2rem;margin:1rem 0}
.hub h3{margin:0 0 .3rem;font-size:1.02rem;padding-bottom:.35rem;border-bottom:2px solid var(--fg)}
.hub ul{list-style:none;padding:0;margin:0;font-size:.95rem}
.hub li{margin:.2rem 0}
.rel ul{columns:2 16rem;padding-left:1.1rem}
/* tool */
.tool{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:1rem;margin:1.25rem 0 1.5rem}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:0 0 .75rem}
.btn,.seg button{font-family:inherit;font-size:.92rem;padding:.45rem .9rem;border-radius:6px;border:1px solid var(--capb);background:var(--cap);color:var(--fg);cursor:pointer}
.btn.pri{background:var(--acc);border-color:var(--acc);color:#fff}
@media(prefers-color-scheme:dark){.btn.pri{color:#0d1420}}
.seg{display:inline-flex}
.seg button{border-radius:0}
.seg button:first-child{border-radius:6px 0 0 6px}
.seg button:last-child{border-radius:0 6px 6px 0;border-left:0}
.seg button[aria-pressed=true]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.hint{font-size:.9rem;color:var(--mut)}
.out{display:block;width:100%;min-height:6.5rem;margin:0 0 .75rem;padding:.75rem;font-family:inherit;font-size:1.15rem;line-height:1.5;color:var(--fg);background:var(--bg);border:1px solid var(--capb);border-radius:var(--r);resize:vertical}
.kbw{overflow-x:auto;padding:2px 2px 6px}
.kb{display:grid;gap:5px;container-type:inline-size;min-width:34rem}
.kb[data-mode=type]{grid-template-columns:repeat(60,1fr);grid-template-rows:repeat(5,1fr);aspect-ratio:15/4.9}
.kb[data-mode=test]{grid-template-columns:repeat(92,1fr);grid-template-rows:repeat(6,1fr);aspect-ratio:23/6.4;min-width:46rem}
.k{display:flex;flex-direction:column;justify-content:space-between;min-width:0;overflow:hidden;padding:.3em .45em;font-family:inherit;font-weight:500;font-size:clamp(11px,1.75cqw,17px);line-height:1.1;text-align:left;color:var(--fg);background:var(--cap);border:1px solid var(--capb);border-bottom-width:3px;border-radius:6px;user-select:none;-webkit-user-select:none}
button.k{cursor:pointer}
.kb[data-mode=test] .k{font-size:clamp(9px,1.2cqw,14px)}
.k.f{font-size:.72em;color:var(--mut)}
.kb[data-mode=test] .k.f{font-size:clamp(8px,.95cqw,12px)}
.k:not(.f) .m{font-size:1.2em}
.k .a{align-self:flex-end;color:var(--pl);font-size:.85em;font-weight:600}
.k.ok{background:var(--acc-bg);border-color:var(--acc)}
.k.act,.k.on{background:var(--acc);border-color:var(--acc);color:#fff}
.k.on{transform:translateY(2px);border-bottom-width:1px}
.k.act .a,.k.on .a,.k.act.f,.k.on.f{color:#fff}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.5rem;margin:0 0 .75rem}
.stats div{background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:.45rem .7rem}
.stats span{display:block;font-size:.78rem;color:var(--mut)}
.stats b{font-size:1.05rem;word-break:break-all}
.lg{display:inline-block;width:.9em;height:.9em;border-radius:3px;vertical-align:-.1em;border:1px solid var(--acc)}
.lg.on{background:var(--acc)}.lg.ok{background:var(--acc-bg)}
/* faq */
.faq details{border-bottom:1px solid var(--line);padding:.6rem 0}
.faq summary{cursor:pointer;font-weight:650}
.faq details p{margin:.5rem 0 0}
/* footer */
.ft{border-top:1px solid var(--line);background:var(--panel);font-size:.92rem;padding:2rem 0 2.5rem}
.ft .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:1.5rem}
.ft h2{font-size:.95rem;margin:0 0 .4rem}
.ft ul{list-style:none;padding:0;margin:0}
.ft a{color:var(--fg)}
.ft .cp{color:var(--mut);margin-top:1.5rem}
.toast{position:fixed;left:50%;bottom:1.25rem;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:.5rem 1rem;border-radius:6px;font-size:.92rem;opacity:0;transition:opacity .2s;pointer-events:none;z-index:9}
.toast.show{opacity:1}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.k.on{transform:none}}
@media(max-width:40rem){.hd .w{gap:1rem}body{font-size:1rem}}
/* test szybkości pisania */
.ty-text{max-height:7.6em;overflow:hidden;margin:0 0 .75rem;padding:.75rem;font-size:1.25rem;line-height:1.5;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);color:var(--mut);position:relative}
.ty-text .ok{color:var(--fg)}
.ty-text .er{color:#fff;background:#c62d2d;border-radius:2px}
.ty-text .cur{border-bottom:2px solid var(--acc);color:var(--fg)}
