.tst{--tst-bg:#f5f8ef;--tst-card:#fff;--tst-ink:#24362b;--tst-muted:#536253;--tst-line:#b5c7a7;--tst-accent:#3f6549;--tst-good:#245b37;--tst-bad:#a32632;--tst-error:#fbe5e5;--tst-mark:#e0ebd3;box-sizing:border-box;max-width:1040px;margin:24px auto;padding:clamp(18px,4vw,36px);border:1px solid var(--tst-line);border-radius:20px;background:var(--tst-bg);color:var(--tst-ink);font:400 16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;color-scheme:light;overflow-wrap:anywhere}
html[data-ts-theme="dark"] .tst{--tst-bg:#203126;--tst-card:#142019;--tst-ink:#eef3e9;--tst-muted:#bdccbd;--tst-line:#607965;--tst-accent:#c1d8ad;--tst-good:#b9e4bc;--tst-bad:#ffb6b6;--tst-error:#5d2930;--tst-mark:#3b5142;color-scheme:dark}
html[data-ts-theme="contrast"] .tst{--tst-bg:#efe5d3;--tst-card:#fff9ee;--tst-ink:#3e352a;--tst-muted:#6d604f;--tst-line:#af936b;--tst-accent:#765d3e;--tst-good:#365f36;--tst-bad:#9a2534;--tst-error:#f6deda;--tst-mark:#e4d3b3}
.tst *{box-sizing:border-box}.tst [hidden]{display:none!important}.tst p{margin:0 0 12px}.tst-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tst h2{font:650 clamp(24px,4vw,34px)/1.2 system-ui,sans-serif;letter-spacing:-.7px;color:var(--tst-ink);margin:0 0 12px}.tst h3{font-size:24px;color:var(--tst-ink);margin:8px 0}.tst-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--tst-muted)}.tst-heading p:not(.tst-eyebrow){color:var(--tst-muted);font-size:15px}.tst-badge{white-space:nowrap;padding:6px 12px;border:1px solid var(--tst-line);border-radius:30px;font-size:12px;font-weight:600}.tst-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.tst-stats>div{background:var(--tst-card);border:1px solid var(--tst-line);padding:14px 18px;border-radius:12px}.tst-stats span{display:block;font-size:12px;color:var(--tst-muted)}.tst-stats strong{display:block;font-size:30px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums}.tst b{font-weight:600}.tst small{font-size:12px;color:var(--tst-muted)}.tst-progress{height:4px;background:var(--tst-line);border-radius:4px;overflow:hidden;margin:0 0 22px}.tst-progress span{display:block;width:0;height:100%;background:var(--tst-accent)}.tst-passage{font:400 var(--tst-reading-size,22px)/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.2px;white-space:pre-wrap;background:var(--tst-card);padding:20px;border:1px solid var(--tst-line);border-radius:12px;height:clamp(230px,26vh,280px);overflow-y:auto;scroll-behavior:smooth;margin-bottom:18px;overflow-wrap:break-word}.tst-passage .good{color:var(--tst-good);background:var(--tst-mark)}.tst-passage .bad{color:var(--tst-bad);background:var(--tst-error);text-decoration:underline;text-decoration-thickness:2px}.tst-passage .current{border-bottom:3px solid var(--tst-accent)}.tst-label{font-size:13px;font-weight:650;display:block}.tst .tst-input{width:100%;min-height:112px;resize:vertical;border:1px solid var(--tst-line);border-radius:10px;background:var(--tst-card);color:var(--tst-ink);font:400 17px/1.6 ui-monospace,Consolas,monospace;padding:14px;margin:6px 0 8px;box-shadow:none;max-width:100%}.tst .tst-input::placeholder{color:var(--tst-muted);opacity:1}.tst :focus-visible{outline:3px solid var(--tst-accent);outline-offset:3px}.tst-help,.tst-privacy{font-size:12px;color:var(--tst-muted)}.tst-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.tst-status{font-size:13px;color:var(--tst-muted);margin:0!important}.tst button{min-height:44px;padding:10px 18px;border:1px solid var(--tst-accent);border-radius:9px;background:var(--tst-accent);color:var(--tst-bg);font:600 14px/1.4 system-ui,sans-serif;cursor:pointer;box-shadow:none}.tst button:hover{filter:brightness(.92)}.tst button.tst-reset{background:transparent;color:var(--tst-ink);border-color:var(--tst-line)}.tst-details{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px;color:var(--tst-muted);padding-bottom:16px}.tst-result{margin:16px 0;padding:24px;background:var(--tst-card);border:1px solid var(--tst-line);border-radius:12px}.tst-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:24px 0}.tst-result dt{font-size:12px;color:var(--tst-muted)}.tst-result dd{margin:4px 0 0;font-size:20px;font-weight:650}.tst-explain{border-top:1px solid var(--tst-line);padding-top:16px;margin-top:4px}.tst-explain p{font-size:13px;color:var(--tst-muted);margin-top:8px}.tst .tst-privacy{margin:12px 0 0}
@media(max-width:650px){.tst-heading{display:block}.tst-badge{display:inline-block;margin-bottom:8px}.tst-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tst-stats>div{padding:10px 14px}.tst-stats strong{font-size:26px}.tst-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tst-result{padding:18px}.tst-toolbar{align-items:flex-start}.tst-passage{padding:16px;height:220px}.tst{border-radius:14px}.tst-status{max-width:55%}}
@media(prefers-reduced-motion:reduce){.tst-passage{scroll-behavior:auto}}

.tst-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:normal!important;border:0!important}

.tst-duration-label{font-size:12px;font-weight:600;white-space:nowrap;color:var(--tst-muted)}.tst .tst-duration{display:block;min-height:44px;margin-top:4px;background:var(--tst-card);border:1px solid var(--tst-line);border-radius:9px;color:var(--tst-ink);padding:8px 30px 8px 12px;font:500 14px system-ui,sans-serif;cursor:pointer}.tst .tst-duration:disabled{opacity:.7;cursor:default}@media(max-width:650px){.tst-duration-label{display:block;margin:4px 0 14px}.tst .tst-duration{width:100%}.tst-toolbar{flex-wrap:wrap}.tst-reset{white-space:nowrap}}@media(max-width:380px){.tst-toolbar{flex-direction:column}.tst-status{max-width:100%}}
.tsg-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 16px}.tst .tsg-tabs button[aria-pressed="false"]{background:var(--tst-card);color:var(--tst-ink);border-color:var(--tst-line)}.tsg-target{padding:24px;text-align:center;font:650 clamp(30px,7vw,48px)/1.3 ui-monospace,Consolas,monospace;letter-spacing:1px;background:var(--tst-card);border:1px solid var(--tst-line);border-radius:12px;margin-bottom:18px}.tst .tsg-input{min-height:52px}.tsg-instruction,.tsg-status{color:var(--tst-muted);font-size:14px}.tst .tsg-wrong{border:2px solid var(--tst-bad);background:var(--tst-error)}

.ts-home-simple{max-width:1040px!important;margin:28px auto!important;padding:0 16px}.ts-home-simple h1{font:650 clamp(27px,4vw,38px)/1.2 system-ui,sans-serif;letter-spacing:-.6px;margin:0 0 10px;color:var(--ts-ink,#24362b)}.ts-home-simple .ts-home-intro{font-size:16px;margin:0 0 14px;color:var(--ts-muted,#536253)}.ts-home-simple .tst{margin-top:18px}.ts-home-games{padding:22px 0 10px!important;max-width:1040px!important}.ts-home-games h2{font-size:23px!important;margin:0 0 8px!important}.ts-home-games p{font-size:15px!important;margin:0 0 14px!important}
.entry-content-wrap:has(.tst){padding:clamp(12px,2.5vw,32px)!important}.entry-content .ts-home-simple{padding:0!important}.entry-content .ts-home-simple h1{font-size:clamp(27px,4vw,38px)!important;line-height:1.2!important;font-weight:650!important;letter-spacing:-.6px!important}.entry-content .ts-home-simple .ts-home-intro{margin-bottom:14px!important}
.tst-duration-label{position:relative}.tst-duration-label::after{content:"";position:absolute;right:15px;bottom:18px;width:7px;height:7px;border-right:2px solid var(--tst-ink);border-bottom:2px solid var(--tst-ink);transform:rotate(45deg);pointer-events:none}.tst .tst-duration{min-width:150px;padding-right:38px!important}

.tst-settings{display:grid;gap:12px;min-width:160px;flex-shrink:0}.tst .tst-settings select{width:100%}.tst .tst-level-help{margin:2px 0 10px;color:var(--tst-muted)}@media(max-width:650px){.tst-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin:12px 0}.tst-settings .tst-duration-label{margin:0;white-space:normal}.tst .tst-settings select{min-width:0;padding-left:10px}.tst-settings .tst-duration-label::after{bottom:18px}}@media(max-width:350px){.tst-settings{grid-template-columns:1fr}}

.tst:not(.tsg){--tst-reading-size:22px}.tst:not(.tsg) .tst-input{font-size:calc(var(--tst-reading-size) - 2px)}.tst-passage-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}.tst .tst-passage-header h3{font-size:18px;line-height:1.4;margin:0;font-weight:650}.tst-text-size{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.tst-size-label{font-size:12px;color:var(--tst-muted);margin-right:3px}.tst .tst-text-size button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border-color:var(--tst-line);background:var(--tst-card);color:var(--tst-ink);font-size:16px}.tst .tst-text-size button:disabled{opacity:.45;cursor:default;filter:none}.tst-size-value{display:inline-block;min-width:42px;text-align:center;color:var(--tst-muted);font-size:12px;font-variant-numeric:tabular-nums}@media(max-width:650px){.tst:not(.tsg){--tst-reading-size:20px}.tst-passage-header{align-items:flex-start;gap:10px}.tst-text-size{width:100%}.tst .tst-passage-header h3{font-size:17px}}

.tst .tst-passage-info{font-size:12px;line-height:1.6;color:var(--tst-muted);margin:0 0 10px}.tst .tst-passage .tst-reading-paragraph{font:inherit;color:inherit;letter-spacing:inherit;margin:0 0 .8em;padding:0}.tst .tst-passage .tst-reading-paragraph:last-child{margin-bottom:0}
@media(max-width:650px){
 .content-container.site-container:has(.tst){padding-left:12px!important;padding-right:12px!important}
 .entry-content-wrap:has(.tst){padding:0!important}
 .content-area:has(.tst){margin-top:20px!important;margin-bottom:28px!important}
 body.home #main .ts-home-simple{margin-top:0!important;margin-bottom:0!important}
 .entry-content .ts-home-simple h1{font-size:24px!important;line-height:1.25!important;margin-bottom:10px!important}
 .entry-content .ts-home-simple .ts-home-intro{font-size:15px;line-height:1.6;margin-bottom:12px!important}
 .tst{padding:16px;margin-top:14px}
 .tst-heading .tst-eyebrow{display:none}
 .tst .tst-heading h2{font-size:22px;line-height:1.25;margin-bottom:8px}
 .tst-settings{margin:10px 0 12px}
 .tst .tst-settings .tst-duration{padding-left:8px!important;padding-right:28px!important;font-size:14px}
}
@media(min-width:300px) and (max-width:650px){.tst-settings{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:299px){.tst-settings{grid-template-columns:1fr}}

.tst .tst-explain h3{font-size:18px;line-height:1.4;margin:0 0 14px;font-weight:650;letter-spacing:0}
.tst .tst-result-definitions{display:grid;gap:12px;list-style:disc outside;margin:0 0 16px;padding:0 0 0 22px;font-size:15px;line-height:1.7;color:var(--tst-muted)}
.tst .tst-result-definitions li{display:list-item;margin:0;padding-left:3px}
.tst .tst-result-definitions li::marker{color:var(--tst-accent)}
.tst .tst-result-definitions strong{color:var(--tst-ink);font-weight:650}
.tst .tst-explain .tst-assessment-note{font-size:12px;line-height:1.6;margin:0;color:var(--tst-muted)}
@media(max-width:650px){
 .content-style-boxed .content-bg.single-entry:has(.tst){margin-left:0!important;margin-right:0!important}
 .entry-content:has(.tst)>h1{font-size:clamp(24px,5vw,30px);line-height:1.25;letter-spacing:-.4px;margin-bottom:10px}
 .entry-content .tst-page-intro{margin-top:8px!important;margin-bottom:20px!important}
 .entry-content .tst-page-intro p{font-size:15px;line-height:1.65}
}

.entry-content .tst-page-faq{max-width:760px;margin:40px auto 28px;color:var(--ts-ink,#24362b);overflow-wrap:anywhere}
.entry-content .tst-page-faq h2{font-size:clamp(22px,3vw,28px);line-height:1.3;margin:0 0 8px;color:inherit}
.entry-content .tst-page-faq :is(.rank-math-list-item,.rank-math-faq-item){padding:20px 0;border-top:1px solid #b5c7a7;border-top-color:color-mix(in srgb,currentColor 22%,transparent)}
.entry-content .tst-page-faq .rank-math-question{font-size:18px;line-height:1.45;font-weight:650;color:inherit;margin:0 0 10px;letter-spacing:0}
.entry-content .tst-page-faq .rank-math-answer{font-size:16px;line-height:1.75;color:var(--ts-muted,#526255)}
.entry-content .tst-page-faq .rank-math-answer p:last-child{margin-bottom:0}
@media(max-width:650px){.entry-content .tst-page-faq{margin-top:30px}.entry-content .tst-page-faq .rank-math-question{font-size:17px}.entry-content .tst-page-faq .rank-math-answer{font-size:15px}}

/* Keep narrow-screen tool content inside its layout, without hiding overflow. */
@media(max-width:767px){.entry-content:has(.tst){min-width:0;max-width:100%;overflow-wrap:anywhere}.tst,.tst-heading,.tst-heading>div,.tst-settings,.tst-stats,.tst-stats>div,.tst-result,.tst-result-grid,.tst-result-grid>div{min-width:0;max-width:100%}.tst .tst-duration,.tst textarea{width:100%;min-width:0;max-width:100%}.tst .tst-result dd,.tst .tst-heading h2{overflow-wrap:anywhere}.entry-content:has(.tst)>.alignfull{width:100%;max-width:100%;margin-left:0;margin-right:0}}
@media(max-width:380px){.tst .tst-settings{grid-template-columns:minmax(0,1fr)}.tst .tst-settings .tst-duration-label{white-space:normal}.tst .tst-stats>div{padding:10px}.tst .tst-result-grid{gap:12px}}

/* Tool statistics remain in normal document flow at every viewport. */
