/*
Theme Name: Typing Test Theme
Theme URI: https://typingtest.network/
Author: Typing Test
Description: Lightweight, fast theme for Typing Test.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: typingtest
*/

:root{--p:#4f46e5;--pd:#3f37c9;--pl:#eef0ff;--acc:#f97316;--tx:#1f2328;--mu:#59636e;--bd:#d8dee4;--bg:#ffffff;--soft:#f6f8fa;--ok:#1a7f37;--err:#cf222e;--r:12px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--tx);background:var(--bg);line-height:1.6;font-size:17px}
a{color:var(--pd)}
img{max-width:100%;height:auto}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:99}
.site-header{border-bottom:1px solid var(--bd);background:#fff;position:sticky;top:0;z-index:50}
.hdr{display:flex;align-items:center;justify-content:space-between;min-height:62px;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--tx);font-weight:800;font-size:1.25rem;letter-spacing:-.01em}
.brand b{color:var(--p)}
.site-nav{display:flex;gap:4px;flex-wrap:wrap}
.site-nav a{text-decoration:none;color:var(--tx);padding:8px 12px;border-radius:8px;font-size:.95rem;font-weight:500}
.site-nav a:hover{background:var(--pl);color:var(--pd)}
.nav-toggle{display:none;border:1px solid var(--bd);background:#fff;border-radius:8px;padding:8px 12px;font:inherit}
@media(max-width:820px){.nav-toggle{display:block}.site-nav{display:none;position:absolute;top:62px;left:0;right:0;background:#fff;border-bottom:1px solid var(--bd);flex-direction:column;padding:8px 16px}.site-nav.open{display:flex}}
.site-main{min-height:60vh;padding:20px 0 48px}
.crumbs{font-size:.88rem;color:var(--mu);margin:4px 0 8px}.crumbs a{color:var(--mu)}
.page-title{font-size:2rem;line-height:1.2;margin:8px 0 16px;letter-spacing:-.02em}
.entry h2{font-size:1.4rem;margin:32px 0 10px;letter-spacing:-.01em}
.entry h3{font-size:1.12rem;margin:22px 0 8px}
.entry table{border-collapse:collapse;width:100%;margin:12px 0;font-size:.95rem}
.entry th,.entry td{border:1px solid var(--bd);padding:8px 10px;text-align:left}
.entry th{background:var(--soft)}
.entry .tbl{overflow-x:auto}
.entry details{border:1px solid var(--bd);border-radius:10px;padding:10px 14px;margin:8px 0}
.entry summary{font-weight:600;cursor:pointer}
.lead{font-size:1.08rem;color:var(--mu);max-width:760px}
.card{border:1px solid var(--bd);border-radius:var(--r);padding:18px;background:#fff}
.tool{border:1px solid var(--bd);border-radius:16px;padding:20px;background:var(--soft);margin:16px 0 24px}
.btn{display:inline-flex;align-items:center;gap:6px;background:var(--p);color:#fff;border:0;border-radius:10px;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--pd)}
.btn.ghost{background:#fff;color:var(--pd);border:1px solid var(--bd)}
.btn:disabled{opacity:.5;cursor:not-allowed}
input,select,textarea{font:inherit;color:var(--tx)}
.field{display:flex;flex-direction:column;gap:4px}
.field label{font-size:.85rem;font-weight:600;color:var(--mu)}
.inp{border:1px solid var(--bd);border-radius:10px;padding:10px 12px;background:#fff;width:100%;min-width:0}
.inp:focus{outline:2px solid var(--p);outline-offset:1px;border-color:var(--p)}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:12px 0 24px}
.tile{display:flex;gap:10px;align-items:center;border:1px solid var(--bd);border-radius:12px;padding:14px;text-decoration:none;color:var(--tx);background:#fff;font-weight:600}
.tile:hover{border-color:var(--p);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.tile .ic{width:38px;height:38px;border-radius:10px;background:var(--pl);color:var(--pd);display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex:none}
.tile small{display:block;font-weight:400;color:var(--mu);font-size:.82rem}
.links{columns:3 220px;padding-left:18px}.links li{margin:3px 0}
.hero{padding:26px 0 8px}
.hero h1{font-size:2.3rem;line-height:1.15;margin:0 0 8px;letter-spacing:-.02em}
@media(max-width:600px){.hero h1{font-size:1.75rem}.page-title{font-size:1.6rem}body{font-size:16px}}
.note{background:var(--pl);border-radius:10px;padding:10px 14px;font-size:.95rem}
.site-footer{border-top:1px solid var(--bd);background:var(--soft);font-size:.92rem;color:var(--mu)}
.foot{display:flex;justify-content:space-between;gap:24px;padding:28px 16px;flex-wrap:wrap}
.foot p{max-width:420px;margin:6px 0 0}
.foot-links{display:flex;flex-wrap:wrap;gap:8px 18px;align-content:flex-start}
.foot-links a{color:var(--mu)}
.foot-bottom{padding:12px 16px 24px;border-top:1px solid var(--bd)}
.foot-bottom a{color:var(--mu)}

/* ===== Google colour theme (matches The Grade Calculator) - added 10 Nov 2026 ===== */
:root{--p:#1a73e8;--pd:#1967d2;--pl:#e8f0fe;--acc:#fbbc04;--tx:#202124;--mu:#5f6368;--bd:#dadce0;--soft:#f8f9fa;--ok:#1e8e3e;--err:#d93025;
--gb:#4285f4;--gbd:#1967d2;--gbs:#e8f0fe;--gr:#ea4335;--grd:#d93025;--grs:#fce8e6;--gy:#fbbc04;--gyd:#e37400;--gys:#fef7e0;--gg:#34a853;--ggd:#1e8e3e;--ggs:#e6f4ea}
.site-header{border-bottom:0;box-shadow:0 1px 0 var(--bd)}
.site-header::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:3px;background:linear-gradient(90deg,var(--gb) 0 25%,var(--gr) 25% 50%,var(--gy) 50% 75%,var(--gg) 75%)}
.brand b{color:var(--gb)}
.site-nav a{position:relative;transition:background .15s,color .15s}
.site-nav a:nth-child(4n+1):hover{background:var(--gbs);color:var(--gbd)}
.site-nav a:nth-child(4n+2):hover{background:var(--grs);color:var(--grd)}
.site-nav a:nth-child(4n+3):hover{background:var(--gys);color:var(--gyd)}
.site-nav a:nth-child(4n+4):hover{background:var(--ggs);color:var(--ggd)}
.entry.front .hero{position:relative;margin:0 -16px 8px;padding:26px 16px 22px;border-radius:0 0 22px 22px;overflow:hidden;
background:radial-gradient(420px 220px at 92% 0%,rgba(251,188,4,.18),transparent 70%),radial-gradient(520px 260px at 70% 110%,rgba(66,133,244,.16),transparent 70%),radial-gradient(360px 200px at 0% 100%,rgba(52,168,83,.12),transparent 70%),linear-gradient(180deg,#f8fbff,#fff)}
.entry.front .hero h1,.page-title{position:relative;padding-bottom:12px}
.entry.front .hero h1::after,.page-title::after{content:"";position:absolute;left:0;bottom:0;width:132px;height:5px;border-radius:3px;
background:linear-gradient(90deg,var(--gb) 0 22%,transparent 22% 26%,var(--gr) 26% 48%,transparent 48% 52%,var(--gy) 52% 74%,transparent 74% 78%,var(--gg) 78%)}
.entry h2{color:var(--tx)}
.entry h2::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:10px;vertical-align:middle;background:var(--gb)}
.entry h2:nth-of-type(4n+2)::before{background:var(--gr)}
.entry h2:nth-of-type(4n+3)::before{background:var(--gy)}
.entry h2:nth-of-type(4n+4)::before{background:var(--gg)}
.btn{background:var(--p);box-shadow:0 1px 2px rgba(26,115,232,.3);transition:transform .12s,background .15s,box-shadow .15s}
.btn:hover{background:var(--pd);transform:translateY(-1px);box-shadow:0 4px 12px rgba(26,115,232,.28)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:#fff;color:var(--ggd);border:1px solid #b7dfc3;box-shadow:none}
.btn.ghost:hover{background:var(--ggs);color:var(--ggd)}
.tt-test,.tt-calc,.tt-custom,.tt-weak{background:#fff;border:1px solid var(--bd);box-shadow:0 2px 10px rgba(60,64,67,.08);position:relative;overflow:hidden}
.tt-test::before,.tt-calc::before,.tt-custom::before,.tt-weak::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--gb) 0 25%,var(--gr) 25% 50%,var(--gy) 50% 75%,var(--gg) 75%)}
.tt-seg{background:var(--soft);border-color:var(--bd)}
.tt-seg button{transition:background .15s,color .15s,transform .12s}
.tt-seg button:hover{background:var(--gbs);color:var(--gbd)}
.tt-seg button.on{background:var(--gb);color:#fff;box-shadow:0 2px 6px rgba(66,133,244,.35)}
.tt-stats div{position:relative;border:0;border-top:4px solid var(--gb);background:var(--gbs);transition:transform .15s,background .3s,border-color .3s}
.tt-stats div:nth-child(2){border-top-color:var(--gg);background:var(--ggs)}
.tt-stats div:nth-child(3){border-top-color:var(--gy);background:var(--gys)}
.tt-stats div:nth-child(4){border-top-color:var(--gr);background:var(--grs)}
.tt-stats div:nth-child(1) b{color:var(--gbd)}
.tt-stats div:nth-child(2) b{color:var(--ggd)}
.tt-stats div:nth-child(3) b{color:var(--gyd)}
.tt-stats div:nth-child(4) b{color:var(--grd)}
.tt-stats div.acc-mid{border-top-color:var(--gy);background:var(--gys)}
.tt-stats div.acc-low{border-top-color:var(--gr);background:var(--grs)}
.tt-stats div.acc-low b{color:var(--grd)}
.tt-stats div.acc-hi{border-top-color:var(--gg);background:var(--ggs)}
.tt-stats div.acc-hi b{color:var(--ggd)}
.tt-stats b.bump{animation:ttbump .35s ease}
@keyframes ttbump{40%{transform:scale(1.18)}}
.ttx-prog{height:8px;border-radius:6px;background:#eef1f4;margin:-2px 0 12px;overflow:hidden}
.ttx-prog i{display:block;height:100%;width:0;border-radius:6px;transition:width .9s linear;background:linear-gradient(90deg,var(--gb),var(--gg) 40%,var(--gy) 75%,var(--gr));background-size:100vw 100%}
.tt-area{--ttc:var(--gb);border-color:var(--bd);transition:border-color .12s,box-shadow .2s}
.tt-area.focus{border-color:var(--ttc);box-shadow:0 0 0 4px color-mix(in srgb,var(--ttc) 16%,transparent)}
.tt-text{color:#9aa0a6}
.tt-text .ok{color:var(--tx)}
.tt-text .bad{color:var(--grd);background:var(--grs)}
.tt-text .bad.sp{background:#f9c7c2}
.tt-text .cur{border-left-color:var(--gb);background:var(--gbs);border-radius:2px}
.tt-hint{color:var(--gbd);font-weight:500}
.ttx-combo{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;font-weight:700;color:var(--ggd);background:var(--ggs);border-radius:20px;padding:4px 12px;opacity:0;transform:translateY(4px);transition:opacity .2s,transform .2s}
.ttx-combo.show{opacity:1;transform:none}
.ttx-combo.hot{color:var(--gyd);background:var(--gys)}
.ttx-combo.fire{color:var(--grd);background:var(--grs)}
.tt-result{border:0;box-shadow:0 2px 14px rgba(60,64,67,.12);position:relative;overflow:hidden;animation:ttin .45s ease}
@keyframes ttin{from{opacity:0;transform:translateY(10px)}}
.tt-score div{background:var(--gbs);border-top:4px solid var(--gb)}
.tt-score div:nth-child(4n+1) b{color:var(--gbd)}
.tt-score div:nth-child(4n+2){background:var(--ggs);border-top-color:var(--gg)}.tt-score div:nth-child(4n+2) b{color:var(--ggd)}
.tt-score div:nth-child(4n+3){background:var(--gys);border-top-color:var(--gy)}.tt-score div:nth-child(4n+3) b{color:var(--gyd)}
.tt-score div:nth-child(4n+4){background:var(--grs);border-top-color:var(--gr)}.tt-score div:nth-child(4n+4) b{color:var(--grd)}
.tt-level{font-size:1.1rem;color:var(--gbd)}
.tt-best{color:var(--mu);background:var(--gys);border-radius:20px;padding:4px 12px}
.ttx-confetti{position:fixed;inset:0;pointer-events:none;z-index:9999}
.pairs li a{transition:background .15s,border-color .15s,color .15s,transform .12s;background:var(--gbs);border-color:#c6dafc;color:var(--gbd);font-weight:500}
.pairs li:nth-child(4n+2) a{background:var(--grs);border-color:#f6c6c1;color:var(--grd)}
.pairs li:nth-child(4n+3) a{background:var(--gys);border-color:#fbe1a6;color:#b06000}
.pairs li:nth-child(4n+4) a{background:var(--ggs);border-color:#b7dfc3;color:var(--ggd)}
.pairs li a:hover{transform:translateY(-2px);box-shadow:0 3px 8px rgba(60,64,67,.15)}



.entry th{background:var(--gb);color:#fff;border-color:var(--gb)}
.entry tbody tr:nth-child(even) td{background:var(--soft)}
.entry details{border-left:4px solid var(--gb)}
.entry details:nth-of-type(4n+2){border-left-color:var(--gr)}
.entry details:nth-of-type(4n+3){border-left-color:var(--gy)}
.entry details:nth-of-type(4n+4){border-left-color:var(--gg)}
.tile .ic{background:var(--gbs);color:var(--gbd)}
.tile:nth-child(4n+2) .ic{background:var(--grs);color:var(--grd)}
.tile:nth-child(4n+3) .ic{background:var(--gys);color:var(--gyd)}
.tile:nth-child(4n+4) .ic{background:var(--ggs);color:var(--ggd)}
.tile:hover{border-color:var(--gb)}
.kb span{transition:background .1s,transform .1s}
.kb span.hl{background:var(--gb);border-color:var(--gb)}
.kb span.hm{background:var(--gbs)}
.kb span.ttx-press{background:var(--gy);border-color:var(--gy);color:#202124;transform:translateY(1px)}
.formula{border-left:4px solid var(--gg)}
@media(prefers-reduced-motion:reduce){.tt-stats b.bump,.tt-result{animation:none}.ttx-prog i{transition:none}}
.tt-best:empty{display:none}

/* ===== Compact layout: whole test visible without scrolling - 10 Nov 2026 ===== */
.site-main{padding-top:6px}
.hdr{min-height:54px}
.brand{font-size:1.12rem}.brand img{width:30px;height:30px}
.site-nav a{padding:6px 10px;font-size:.9rem}
.entry.front .hero{padding:12px 16px 10px;margin-bottom:4px;border-radius:0 0 16px 16px}
.entry.front .hero h1,.page-title{font-size:1.6rem;line-height:1.15;margin:0 0 6px;padding-bottom:9px}
.entry.front .hero h1::after,.page-title::after{width:96px;height:4px}
.entry.front .hero .lead,.lead{font-size:.95rem;line-height:1.45;margin:0;max-width:none}
.crumbs{margin:0 0 2px;font-size:.8rem}
.tt-test,.tt-calc,.tt-custom,.tt-weak{padding:12px 14px 12px;margin:8px 0 18px;border-radius:12px}
.tt-bar{margin-bottom:8px;gap:8px}
.tt-seg{padding:3px;border-radius:10px}
.tt-seg button{padding:4px 10px;font-size:.85rem}
.tt-src{font-size:.82rem}.tt-src .inp{padding:4px 8px;font-size:.85rem}
.tt-stats{gap:8px;margin-bottom:8px}
.tt-stats div{padding:3px 8px 4px;border-radius:10px;border-top-width:3px;display:flex;align-items:baseline;justify-content:center;gap:8px}
.tt-stats b{font-size:1.25rem;display:inline}
.tt-stats span{font-size:.75rem}
.ttx-prog{height:5px;margin:0 0 8px}
.tt-area{padding:10px 14px;border-radius:12px}
.tt-text{font-size:1.12rem;line-height:1.8rem;height:5.4rem}
.tt-hint{bottom:-22px;font-size:.78rem}
.tt-actions{margin-top:26px;gap:8px}
.tt-actions .btn,.tt-result .btn{padding:7px 14px;font-size:.9rem;border-radius:8px}
.tt-best,.ttx-combo{font-size:.8rem;padding:3px 10px}
.tt-result{margin-top:12px;padding:12px 14px}
.tt-score{gap:8px}.tt-score div{padding:6px 8px;min-width:90px}.tt-score b{font-size:1.5rem}
.tt-level{font-size:1rem;margin:8px 0 2px}.tt-detail{font-size:.85rem;margin:4px 0}
.entry h2{font-size:1.25rem;margin:24px 0 8px}
.entry{font-size:16px}
@media(max-width:600px){.tt-text{font-size:1rem;line-height:1.6rem;height:4.8rem}.tt-stats b{font-size:1.1rem}.tt-stats div{flex-direction:column;align-items:center;gap:0}.entry.front .hero h1,.page-title{font-size:1.4rem}}

/* Test-link chips: one calm style - 10 Nov 2026 */
.pairs li a,.pairs li:nth-child(n) a{background:#fff;border:1px solid var(--bd);color:var(--gbd);font-weight:500}
.pairs li a:hover,.pairs li:nth-child(n) a:hover{background:var(--gbs);border-color:var(--gb);color:var(--gbd);box-shadow:none;transform:none}

/* Front page: test on the left, "Choose your test" sidebar on the right - 10 Nov 2026 */
@media(min-width:900px){
.entry.front{display:grid;grid-template-columns:minmax(0,1fr) 230px;column-gap:22px;align-items:start}
.entry.front > *{grid-column:1/-1}
.entry.front > .tt-test{grid-column:1;grid-row:2 / span 2;margin-bottom:18px}
.entry.front > h2:first-of-type{grid-column:2;grid-row:2;margin:8px 0 0;font-size:1rem;padding:12px 14px 8px;background:var(--soft);border:1px solid var(--bd);border-bottom:0;border-radius:12px 12px 0 0}
.entry.front > ul.pairs:first-of-type{grid-column:2;grid-row:3;margin:0;flex-direction:column;flex-wrap:nowrap;gap:6px;padding:4px 12px 14px;background:var(--soft);border:1px solid var(--bd);border-top:0;border-radius:0 0 12px 12px}
.entry.front > ul.pairs:first-of-type li a{display:block;border-radius:8px;padding:7px 12px;font-size:.9rem}
.entry.front > h2:nth-of-type(2){margin-top:8px}
}

@media(min-width:900px){
.entry.front > h2:first-of-type{padding:10px 14px 6px}
.entry.front > ul.pairs:first-of-type{gap:0;padding:2px 8px 10px;background:#fff}
.entry.front > h2:first-of-type{background:#fff}
.entry.front > ul.pairs:first-of-type li{border-bottom:1px solid #eef0f2}
.entry.front > ul.pairs:first-of-type li:last-child{border-bottom:0}
.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{border:0;background:none;padding:5px 8px;font-size:.88rem;line-height:1.3;border-radius:6px}
.entry.front > ul.pairs:first-of-type li a:hover{background:var(--gbs)}
}

/* Breathing room at the top of the test - 10 Nov 2026 */
.site-main{padding-top:14px}
.entry.front .hero{background:none;margin:0 0 6px;padding:10px 0 12px;border-radius:0;overflow:visible}
.entry.front .hero h1,.page-title{margin-bottom:12px}
.entry.front .hero .lead{color:var(--mu)}
.tt-test,.tt-calc,.tt-custom,.tt-weak{padding:18px 20px 16px;margin-top:10px}
.tt-bar{margin-bottom:16px}
.tt-stats{gap:12px;margin-bottom:14px}
.tt-stats div{padding:8px 10px}
.ttx-prog{margin:0 0 16px}
.tt-actions{margin-top:32px}
@media(min-width:900px){.entry.front > h2:first-of-type{margin-top:10px}}

@media(min-width:900px){.entry.front{grid-template-rows:auto auto auto 1fr}.entry.front > .tt-test{grid-row:2 / span 3}}

/* ===== DARK MODE (auto-generated 10 Nov 2026) ===== */
html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] body{background:#1b1c1e;color:#e8eaed}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] output{background-color:#26272a;color:#e8eaed;border-color:#4a4d51}html[data-theme="dark"] a{color:#8ab4f8}html[data-theme="dark"] .site-nav a,html[data-theme="dark"] .brand{color:#e8eaed}.tm-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid #dadce0;background:transparent;color:#3c4043;cursor:pointer;flex:none;margin-left:8px;transition:background .15s}.tm-toggle:hover{background:rgba(127,127,127,.12)}.tm-toggle svg{width:18px;height:18px}html[data-theme="dark"] .tm-toggle{border-color:#4a4d51;color:#fdd663}.hdr .site-nav{margin-left:auto}@media(max-width:820px){.hdr .nav-toggle{margin-left:auto}}
html[data-theme="dark"] .tt-seg{background-color:#1f1f1f}html[data-theme="dark"] .tt-stats div{background-color:#1f1f1f}html[data-theme="dark"] .tt-area{background-color:#1f1f1f}html[data-theme="dark"] .tt-text .bad{background-color:#341614}html[data-theme="dark"] .tt-text .bad.sp{background-color:#3d1917}html[data-theme="dark"] .tt-result{background-color:#1f1f1f}html[data-theme="dark"] kbd{background-color:#1f1f1f}html[data-theme="dark"] .kb span{background-color:#1f1f1f}html[data-theme="dark"] .formula{background-color:#1f1f1f}html[data-theme="dark"] .pairs li a{background-color:#1f1f1f}html[data-theme="dark"]{--pd:#938fe1;--pl:#131732;--tx:#e8eaed;--mu:#a8adb3;--bd:#414549;--bg:#1f1f1f;--soft:#1d2226;--ok:#88e7a4;--err:#eb848b}html[data-theme="dark"] .skip:focus{background-color:#1f1f1f}html[data-theme="dark"] .site-header{background-color:#1f1f1f}html[data-theme="dark"] .nav-toggle{background-color:#1f1f1f}@media (max-width: 820px){html[data-theme="dark"] .site-nav{background-color:#1f1f1f}}html[data-theme="dark"] .card{background-color:#1f1f1f}html[data-theme="dark"] .btn.ghost{background-color:#1f1f1f}html[data-theme="dark"] .inp{background-color:#1f1f1f}html[data-theme="dark"] .tile{background-color:#1f1f1f}html[data-theme="dark"]{--pd:#7faff0;--pl:#152033;--tx:#e8eaed;--mu:#a8adb3;--bd:#434447;--soft:#1f2124;--ok:#89e6a4;--err:#ea8b85;--gbs:#152033;--grd:#ea8b85;--grs:#321a18;--gyd:#f4b97b;--gys:#362e16;--ggd:#89e6a4;--ggs:#202d24}html[data-theme="dark"] .entry.front .hero{background-image:radial-gradient(420px 220px at 92% 0%, rgba(251, 188, 4, 0.18), transparent 70%), radial-gradient(520px 260px at 70% 110%, rgba(66, 133, 244, 0.16), transparent 70%), radial-gradient(360px 200px at 0% 100%, rgba(52, 168, 83, 0.12), transparent 70%), linear-gradient(#121e2f, #1f1f1f)}html[data-theme="dark"] .btn.ghost{background-color:#1f1f1f;border-top-color:#3d4d42;border-right-color:#3d4d42;border-bottom-color:#3d4d42;border-left-color:#3d4d42}html[data-theme="dark"] .tt-test,html[data-theme="dark"] .tt-calc,html[data-theme="dark"] .tt-custom,html[data-theme="dark"] .tt-weak{background-color:#1f1f1f}html[data-theme="dark"] .ttx-prog{background-color:#212528}html[data-theme="dark"] .tt-text .bad.sp{background-color:#3f201d}html[data-theme="dark"] .pairs li a{border-top-color:#324057;border-right-color:#324057;border-bottom-color:#324057;border-left-color:#324057}html[data-theme="dark"] .pairs li:nth-child(4n+2) a{border-top-color:#543835;border-right-color:#543835;border-bottom-color:#543835;border-left-color:#543835}html[data-theme="dark"] .pairs li:nth-child(4n+3) a{border-top-color:#584c32;border-right-color:#584c32;border-bottom-color:#584c32;border-left-color:#584c32;color:#f4bd7b}html[data-theme="dark"] .pairs li:nth-child(4n+4) a{border-top-color:#3d4d42;border-right-color:#3d4d42;border-bottom-color:#3d4d42;border-left-color:#3d4d42}html[data-theme="dark"] .kb span.ttx-press{color:#e8eaed}html[data-theme="dark"] .pairs li a,html[data-theme="dark"] .pairs li:nth-child(n) a{background-color:#1f1f1f}@media (min-width: 900px){html[data-theme="dark"] .entry.front > ul.pairs:first-of-type{background-color:#1f1f1f}html[data-theme="dark"] .entry.front > h2:first-of-type{background-color:#1f1f1f}html[data-theme="dark"] .entry.front > ul.pairs:first-of-type li{border-bottom-color:#424548}}
/* ===== END DARK MODE ===== */

/* Sidebar as small tile buttons, aligned with the test box - 10 Nov 2026 */
@media(min-width:900px){
.entry.front{grid-template-columns:minmax(0,1fr) 270px}
.entry.front > ul.pairs:first-of-type{grid-row:3 / span 2;align-self:stretch;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:8px;padding:6px 12px 14px;margin:0 0 18px;background:var(--bg);border:1px solid var(--bd);border-top:0;border-radius:0 0 12px 12px}
.entry.front > h2:first-of-type{background:var(--bg)}
.entry.front > ul.pairs:first-of-type li,.entry.front > ul.pairs:first-of-type li:last-child{border:0;display:flex}
.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px 6px;border:1px solid var(--bd);border-radius:10px;background:var(--soft);color:var(--pd);font-size:.8rem;font-weight:600;line-height:1.25;transition:background .15s,border-color .15s,transform .12s}
.entry.front > ul.pairs:first-of-type li a:hover{background:var(--pl);border-color:var(--p);transform:translateY(-1px)}
.entry.front > ul.pairs:first-of-type li:last-child{grid-column:1 / -1}
}

html[data-theme="dark"] .entry.front .hero{background:none}
html[data-theme="dark"] .tt-text{color:#6f757b}
html[data-theme="dark"] .tt-text .ok{color:#e8eaed}
html[data-theme="dark"] .tt-text .cur{background:#2b3a55}

/* ===== TEAL & ORANGE theme (final, chosen 10 Nov 2026) - 10 Nov 2026 (overrides the Google colours) ===== */
:root{--nv:#0f4c5c;--nvd:#0a3742;--nvl:#16687c;--gd:#f28c28;--gdd:#b85d0f;--gdl:#fbd3a8;--cream:#fff5ec;
--p:#0f4c5c;--pd:#0c3f4c;--pl:#eaf3f5;--acc:#f28c28;--ok:#1f6f43;--err:#b3261e;
--gb:#0f4c5c;--gbd:#0c3f4c;--gbs:#eaf3f5;--gr:#f28c28;--grd:#b85d0f;--grs:#fff5ec;--gy:#f28c28;--gyd:#b85d0f;--gys:#fff5ec;--gg:#16687c;--ggd:#0f4c5c;--ggs:#eaf3f5}
html[data-theme="dark"]{--p:#1d7186;--pd:#9fd3df;--pl:#15252a;--acc:#f29a45;--ok:#7fd1a2;--err:#f2a29b;
--gb:#1d7186;--gbd:#9fd3df;--gbs:#15252a;--gr:#f29a45;--grd:#f7b46f;--grs:#2e2117;--gy:#f29a45;--gyd:#f7b46f;--gys:#2e2117;--gg:#2a8aa0;--ggd:#9fd3df;--ggs:#15252a;--cream:#2e2117}
.site-header,html[data-theme="dark"] .site-header{background:linear-gradient(90deg,#0a3742,#0f4c5c);box-shadow:0 2px 12px rgba(10,55,66,.25)}
.site-header::after{height:3px;bottom:-3px;background:linear-gradient(90deg,#b85d0f,#f28c28 30%,#ffc48a 50%,#f28c28 70%,#b85d0f)}
.brand,html[data-theme="dark"] .brand{color:#fff}
.brand b{color:#f6a04d}
.site-nav a,html[data-theme="dark"] .site-nav a{color:#e6ebf5;position:relative}
.site-nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;background:#f28c28;transform:scaleX(0);transition:transform .2s}
.site-nav a:nth-child(n):hover{background:rgba(255,255,255,.08);color:#ffc48a}
.site-nav a:hover::after{transform:scaleX(1)}
@media(max-width:820px){.site-nav{background:#0a3742!important}}
.nav-toggle{background:transparent;color:#fff;border-color:rgba(255,255,255,.3)}
.tm-toggle,html[data-theme="dark"] .tm-toggle{border-color:rgba(255,255,255,.3);color:#ffc48a}
.entry.front .hero h1::after,.page-title::after{width:110px;height:4px;background:linear-gradient(90deg,var(--nv) 0 48%,transparent 48% 54%,var(--gd) 54%)}
.entry h2::before,.entry h2:nth-of-type(n)::before{background:var(--gd);box-shadow:0 0 0 3px rgba(242,140,40,.18)}
.entry h2:nth-of-type(odd)::before{background:var(--nv);box-shadow:0 0 0 3px rgba(15,76,92,.15)}
html[data-theme="dark"] .entry h2:nth-of-type(odd)::before{background:#9fd3df}
.btn{position:relative;overflow:hidden;background:linear-gradient(135deg,#16687c,#0a3742);border:1px solid #0a3742;box-shadow:0 2px 6px rgba(10,55,66,.3)}
.btn::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);transition:left .5s}
.btn:hover{background:linear-gradient(135deg,#0f4c5c,#072a33);box-shadow:0 6px 16px rgba(10,55,66,.35),0 0 0 2px rgba(242,140,40,.55)}
.btn:hover::after{left:120%}
.btn.ghost{background:transparent;color:var(--nv);border:1px solid var(--gd);box-shadow:none}
.btn.ghost:hover{background:var(--cream);color:var(--nv);box-shadow:0 0 0 2px rgba(242,140,40,.35)}
html[data-theme="dark"] .btn.ghost{color:#f7b46f}
.tt-test,.tt-calc,.tt-custom,.tt-weak{border-color:#dce8eb;box-shadow:0 10px 30px rgba(10,55,66,.08)}
.tt-test::before,.tt-calc::before,.tt-custom::before,.tt-weak::before{height:4px;background:linear-gradient(90deg,#0a3742,#0f4c5c 45%,#f28c28 75%,#fbd3a8)}
.tt-seg button.on{background:linear-gradient(135deg,#16687c,#0a3742);box-shadow:0 2px 8px rgba(10,55,66,.35)}
.tt-seg button:hover{background:var(--cream);color:var(--nv)}
html[data-theme="dark"] .tt-seg button:hover{color:#f7b46f}
.tt-stats div,.tt-stats div:nth-child(3){border-top-color:var(--nv);background:var(--gbs)}
.tt-stats div:nth-child(2){border-top-color:var(--gd);background:var(--cream)}
.tt-stats div:nth-child(1) b,.tt-stats div:nth-child(3) b{color:var(--gbd)}
.tt-stats div:nth-child(2) b{color:var(--gyd)}
.tt-stats div:hover{transform:translateY(-1px)}
.tt-stats div.acc-hi{border-top-color:var(--nv);background:var(--gbs)}.tt-stats div.acc-hi b{color:var(--gbd)}
.tt-stats div.acc-mid{border-top-color:var(--gd);background:var(--cream)}.tt-stats div.acc-mid b{color:var(--gyd)}
.tt-stats div.acc-low{border-top-color:#b3261e;background:#fbeceb}.tt-stats div.acc-low b{color:#b3261e}
html[data-theme="dark"] .tt-stats div.acc-low{background:#3a1f1d}html[data-theme="dark"] .tt-stats div.acc-low b{color:#f2a29b}
.ttx-prog i{background:linear-gradient(90deg,#0f4c5c,#16687c 50%,#f28c28);background-size:auto}
.tt-area{--ttc:#0f4c5c}
.tt-text .bad{color:#b3261e;background:#fbeceb}
.tt-text .bad.sp{background:#f5cfcb}
html[data-theme="dark"] .tt-text .bad{color:#f2a29b;background:#3a1f1d}
.tt-text .cur{border-left-color:var(--gd);background:var(--cream)}
html[data-theme="dark"] .tt-text .cur{background:#3d2b1b}
.tt-hint{color:var(--gdd)}
html[data-theme="dark"] .tt-hint{color:#f7b46f}
.ttx-combo,.ttx-combo.hot,.ttx-combo.fire{color:var(--nv);background:var(--cream);border:1px solid rgba(242,140,40,.5)}
html[data-theme="dark"] .ttx-combo{color:#f7b46f}
.tt-best{background:var(--cream);color:var(--gdd);border:1px solid rgba(242,140,40,.4)}
html[data-theme="dark"] .tt-best{color:#f7b46f}
.tt-score div,.tt-score div:nth-child(n){background:var(--gbs);border-top-color:var(--nv)}
.tt-score div:nth-child(n) b{color:var(--gbd)}
.tt-score div:nth-child(even){background:var(--cream);border-top-color:var(--gd)}
.tt-score div:nth-child(even) b{color:var(--gyd)}
.tt-level{color:var(--nv)}
html[data-theme="dark"] .tt-level{color:#f7b46f}
.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{background:var(--cream);border:1px solid #f6dcc2;color:var(--nv);transition:background .2s,color .2s,transform .15s,box-shadow .2s}
.entry.front > ul.pairs:first-of-type li a:hover,.entry.front > ul.pairs:first-of-type li:nth-child(n) a:hover{background:linear-gradient(135deg,#16687c,#0a3742);color:#ffc48a;border-color:#0a3742;transform:translateY(-2px);box-shadow:0 6px 14px rgba(10,55,66,.25)}
html[data-theme="dark"] .entry.front > ul.pairs:first-of-type li a,html[data-theme="dark"] .entry.front > ul.pairs:first-of-type li:nth-child(n) a{background:#1d2a2e;border-color:#33474d;color:#f7b46f}
.pairs li a,.pairs li:nth-child(n) a{color:var(--nv);border-color:#e0eaed}
.pairs li a:hover,.pairs li:nth-child(n) a:hover{background:var(--cream);border-color:var(--gd);color:var(--nv)}
html[data-theme="dark"] .pairs li a,html[data-theme="dark"] .pairs li:nth-child(n) a{color:#f7b46f}
.entry.front > h2:first-of-type::before{background:var(--gd)}
.tile .ic,.tile:nth-child(n) .ic{background:var(--cream);color:var(--nv)}
.tile:hover{border-color:var(--gd)}
.entry th{background:linear-gradient(135deg,#0f4c5c,#0a3742);border-color:#0a3742;color:#fff}
.entry details,.entry details:nth-of-type(n){border-left-color:var(--gd)}
.entry details[open]{background:var(--cream)}
html[data-theme="dark"] .entry details[open]{background:#1d2a2e}
.kb span.hl{background:var(--nv);border-color:var(--nv)}
.kb span.hm{background:var(--cream)}
.kb span.ttx-press{background:var(--gd);border-color:var(--gd)}
.formula{border-left-color:var(--gd)}
a{color:var(--pd)}

/* Start button, wider page, bigger sidebar tiles - 10 Nov 2026 */
.wrap{max-width:1200px}
.ttx-start{background:linear-gradient(135deg,#f6a04d,#f28c28)!important;border-color:#e07a14!important;color:#fff!important;margin-left:8px}
.ttx-start:hover{background:linear-gradient(135deg,#f28c28,#d9731a)!important;box-shadow:0 6px 16px rgba(242,140,40,.4),0 0 0 2px rgba(15,76,92,.35)!important}
@media(min-width:900px){
.entry.front{grid-template-columns:minmax(0,1fr) 300px}
.entry.front > ul.pairs:first-of-type{gap:9px}
.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{font-size:.9rem;padding:8px 8px;border-radius:11px}
}
@media(max-width:600px){.tt-actions{flex-wrap:wrap}.ttx-start{margin-left:0}.tt-best{margin-left:0}}

/* Mobile fixes + menu button - 10 Nov 2026 */
html{accent-color:#0f4c5c}
@media(min-width:900px){.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{padding:6px 8px}}
@media(max-width:600px){
.tt-bar{flex-direction:column;align-items:stretch}
.tt-seg{flex-wrap:nowrap;justify-content:space-between}
.tt-seg button{padding:5px 7px;font-size:.8rem;white-space:nowrap}
.tt-src{justify-content:flex-end}
.tt-actions .btn{flex:1 1 auto;justify-content:center}
.tt-best{order:5;width:100%;text-align:center}
}
@media(max-width:820px){.site-nav a,html[data-theme="dark"] .site-nav a{border-bottom:1px solid rgba(255,255,255,.1);border-radius:0}.site-nav a:last-child{border-bottom:0}.site-nav{box-shadow:0 10px 24px rgba(0,0,0,.2)}}
.nav-toggle{font-weight:600}

/* Pause button + paused overlay - 10 Nov 2026 */
.ttx-pause.on{background:#0f4c5c!important;color:#fff!important;border-color:#0f4c5c!important}
.ttx-ov{display:none;position:absolute;inset:0;z-index:5;border-radius:inherit;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;color:#0f4c5c;text-align:center;padding:10px}
.ttx-ov b{font-size:1.3rem}.ttx-ov span{font-size:.85rem;color:#5f6368}
.tt-area.ttx-paused .ttx-ov{display:flex}
html[data-theme="dark"] .ttx-ov{background:rgba(27,28,30,.86);color:#f7b46f}
html[data-theme="dark"] .ttx-ov span{color:#a8adb3}

/* First screen fills the window: roomier spacing that scales with screen height; wider page - 10 Nov 2026 */
.wrap{max-width:1360px}
@media(min-width:900px){
.site-main{padding-top:clamp(10px,2vh,26px)}
.entry.front{grid-template-columns:minmax(0,1fr) 330px;column-gap:clamp(22px,2.4vw,40px)}
.entry.front .hero{padding:clamp(6px,1.4vh,18px) 0 clamp(10px,2vh,24px)}
.entry.front .hero h1{font-size:clamp(1.6rem,3.4vh,2.1rem);margin-bottom:clamp(10px,1.6vh,16px)}
.entry.front .hero .lead{font-size:clamp(.95rem,1.9vh,1.08rem)}
.entry.front > .tt-test{padding:clamp(18px,3vh,32px) clamp(20px,2vw,32px);margin-top:clamp(10px,1.6vh,18px)}
.entry.front > h2:first-of-type{margin-top:clamp(10px,1.6vh,18px);padding-top:clamp(12px,2vh,20px);font-size:1.05rem}
.entry.front .tt-bar{margin-bottom:clamp(14px,2.6vh,28px)}
.entry.front .tt-seg button{padding:clamp(4px,.8vh,8px) clamp(10px,1vw,14px);font-size:.9rem}
.entry.front .tt-stats{gap:clamp(10px,1.2vw,16px);margin-bottom:clamp(12px,2.2vh,22px)}
.entry.front .tt-stats div{padding:clamp(8px,1.8vh,18px) 10px}
.entry.front .tt-stats b{font-size:clamp(1.3rem,3vh,1.8rem)}
.entry.front .tt-stats span{font-size:.8rem}
.entry.front .ttx-prog{margin-bottom:clamp(14px,2.4vh,24px);height:6px}
.entry.front .tt-area{padding:clamp(12px,2vh,22px) clamp(16px,1.6vw,24px)}
.entry.front .tt-text{font-size:clamp(1.12rem,2.4vh,1.45rem);line-height:1.75em;height:5.25em}
.entry.front .tt-actions{margin-top:clamp(30px,4.4vh,46px)}
.entry.front .tt-actions .btn{padding:clamp(7px,1.1vh,11px) clamp(14px,1.2vw,20px);font-size:.95rem}
.entry.front > ul.pairs:first-of-type{gap:clamp(8px,1.2vh,12px);padding:8px 14px 16px}
.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{font-size:clamp(.88rem,1.8vh,1rem);padding:8px}
}

@media(min-width:900px){
.entry.front{grid-template-columns:minmax(0,1fr) clamp(250px,24vw,330px)}
.entry.front .tt-actions{flex-wrap:nowrap}
.entry.front .tt-best{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(min-width:900px) and (max-width:1180px){.entry.front .tt-best{display:none}.entry.front .ttx-start{margin-left:auto}.entry.front .tt-actions .btn{padding:7px 12px}}

/* Live keyboard under the typing box (home) - 10 Nov 2026 */
.ttx-kb{margin:30px auto 0;display:flex;flex-direction:column;align-items:center;gap:4px;user-select:none}
.ttx-kr{display:flex;gap:4px}
.ttx-kr1{margin-left:20px}.ttx-kr2{margin-left:34px}.ttx-kr3{margin-left:10px}
.ttx-kb span{min-width:30px;height:25px;display:inline-flex;align-items:center;justify-content:center;font:600 11.5px ui-monospace,Menlo,Consolas,monospace;color:#0f4c5c;background:#fff;border:1px solid #d9e2e5;border-bottom-width:2px;border-radius:6px;transition:background .12s,color .12s,transform .08s,box-shadow .15s}
.ttx-kb span.hm{border-bottom-color:#f28c28}
.ttx-kb span.sp{min-width:230px;font-weight:500;color:#5f6368}
.ttx-kb span.nx{background:#0f4c5c;color:#fff;border-color:#0a3742;box-shadow:0 0 0 3px rgba(15,76,92,.18)}
.ttx-kb span.pr{background:#f28c28;color:#fff;border-color:#b85d0f;transform:translateY(1px)}
.ttx-kb span.er{background:#b3261e;color:#fff;border-color:#8c1d18}
.tt-test .ttx-kb + .tt-actions{margin-top:14px}
html[data-theme="dark"] .ttx-kb span{background:#232a2e;border-color:#3a4a50;color:#9fd3df}
html[data-theme="dark"] .ttx-kb span.nx{background:#1d7186;color:#fff}
html[data-theme="dark"] .ttx-kb span.pr{background:#f28c28;color:#fff}
@media(max-width:899px){.ttx-kb{display:none!important}}

.ttx-kb{margin-top:26px;gap:3px}.ttx-kr{gap:3px}.ttx-kb span{height:22px;min-width:28px;font-size:11px}
.tt-test .ttx-kb + .tt-actions{margin-top:12px}

/* Keyboard always fits: hint hidden when keyboard shows, tighter spacing if needed - 10 Nov 2026 */
.entry.front .tt-test.has-kb .tt-hint{display:none}
.entry.front .tt-test.has-kb .ttx-kb{margin-top:12px}
.entry.front .ttx-kb span{height:21px}
.entry.front.ttx-tight .hero{padding:2px 0 8px}
.entry.front.ttx-tight .hero h1{font-size:1.5rem;margin-bottom:8px}
.entry.front.ttx-tight > .tt-test{padding:14px 20px;margin-top:8px}
.entry.front.ttx-tight > h2:first-of-type{margin-top:8px}
.entry.front.ttx-tight .tt-bar{margin-bottom:10px}
.entry.front.ttx-tight .tt-stats{margin-bottom:10px}
.entry.front.ttx-tight .tt-stats div{padding:6px 10px}
.entry.front.ttx-tight .ttx-prog{margin-bottom:10px}
.entry.front.ttx-tight .tt-area{padding:10px 16px}

/* Home: time buttons replaced by sidebar tiles (tiles start the test on this page) - 10 Nov 2026 */
@media(min-width:900px){
.entry.front .tt-seg{display:none}
.entry.front .tt-bar{justify-content:flex-end}
.entry.front > ul.pairs:first-of-type li a.ttx-on,.entry.front > ul.pairs:first-of-type li:nth-child(n) a.ttx-on{background:linear-gradient(135deg,#16687c,#0a3742);color:#ffc48a;border-color:#0a3742;box-shadow:0 4px 12px rgba(10,55,66,.28)}
}

/* Home desktop: Text + scores in one row; buttons on both sides of the keyboard - 10 Nov 2026 */
.ttx-onerow .tt-bar{display:none!important}
.ttx-onerow .tt-stats .tt-src{flex:0 0 auto!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;font-size:.72rem;color:var(--mu);background:none!important;border:0!important;padding:0 0 0 4px!important;text-align:left}
.ttx-onerow .tt-stats .tt-src .inp{padding:7px 10px;font-size:.88rem;min-width:150px}
.tt-actions.ttx-empty{display:none!important}
.ttx-kbrow{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px}
.entry.front .tt-test.has-kb .ttx-kbrow .ttx-kb,.ttx-kbrow .ttx-kb{margin:0;flex:0 0 auto}
.ttx-side{display:flex;flex-direction:column;gap:9px;width:150px;flex:0 0 auto}
.ttx-left{align-items:stretch}.ttx-right{align-items:stretch}
.ttx-side .btn{width:100%;justify-content:center;margin:0!important}
.ttx-side .tt-best,.ttx-side .ttx-combo{font-size:.72rem;text-align:center;margin:0!important;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ttx-side .tt-best:empty{display:none}
@media(max-width:1200px){.ttx-side{width:112px}.ttx-kbrow{gap:10px}.ttx-kb span{min-width:24px!important}.ttx-kb span.sp{min-width:180px!important}.ttx-side .btn{padding:7px 8px!important;font-size:.85rem!important}}

/* Slimmer score row + smaller side buttons (home desktop) - 10 Nov 2026 */
@media(min-width:900px){
.entry.front .ttx-onerow .tt-stats{gap:12px}
.entry.front .ttx-onerow .tt-stats div{padding:5px 10px!important;border-top-width:3px;border-radius:9px}
.entry.front .ttx-onerow .tt-stats b{font-size:1.15rem!important}
.entry.front .ttx-onerow .tt-stats span{font-size:.72rem}
.entry.front .ttx-onerow .tt-stats .tt-src{flex-direction:row!important;align-items:center!important;gap:6px!important}
.entry.front .ttx-onerow .tt-stats .tt-src .inp{padding:5px 8px;font-size:.82rem;min-width:140px}
.entry.front .ttx-side{width:118px;gap:7px}
.entry.front .ttx-side .btn{padding:6px 10px!important;font-size:.84rem!important;border-radius:8px!important}
.entry.front .ttx-side .tt-best{font-size:.68rem;padding:2px 8px}
}
.entry.front .ttx-side .tt-best{white-space:normal;line-height:1.25;text-align:center}

/* Slim result cards + slightly smaller overall scale on desktop - 10 Nov 2026 */
.tt-score{gap:10px}
.tt-score div,.tt-score div:nth-child(n){padding:6px 8px!important;border-top-width:3px;border-radius:9px;display:flex;align-items:baseline;justify-content:center;gap:6px;min-width:0}
.tt-score b{font-size:1.25rem!important;display:inline}
.tt-score span{font-size:.72rem}
.tt-result{padding:12px 16px}
.tt-level{font-size:.95rem;margin:8px 0 2px}
.tt-detail{font-size:.8rem}
@media(min-width:900px){
html{font-size:15px}
body{font-size:15.5px}
.entry.front .hero h1{font-size:clamp(1.45rem,3vh,1.85rem)}
.entry.front .tt-text{font-size:clamp(1.05rem,2.2vh,1.3rem)}
.entry.front > ul.pairs:first-of-type li a,.entry.front > ul.pairs:first-of-type li:nth-child(n) a{font-size:clamp(.82rem,1.6vh,.92rem)}
.site-nav a{font-size:.88rem}
}

/* Slim result buttons - 10 Nov 2026 */
.tt-result .tt-actions{margin-top:10px!important}
.tt-result .btn{padding:6px 14px!important;font-size:.85rem!important;border-radius:8px!important}
.tt-result .tt-detail{margin:3px 0}
