:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #202534; background: #f5f6fa; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(ellipse at 50% -24rem, #dbe6ff 0, #f5f6fa 52rem); }
a { color: #315fca; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #d38a00; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .8rem 1rem; color: #111; background: white; }
.skip:focus { top: 1rem; }
.site-head { border-bottom: 1px solid #e3e6ee; background: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2rem, 1100px); min-height: 68px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #202534; font-weight: 800; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.head-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.25rem; font-size: .94rem; }
.head-nav a { font-weight: 650; text-decoration: none; }
.head-nav a:hover, .foot-links a:hover { text-decoration: underline; }
main { width: min(100% - 2rem, 900px); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) 0 3rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; color: #667085; font-size: .9rem; }
.crumbs a { text-decoration: none; }
.eyebrow { margin: 0 0 .55rem; color: #52668e; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 18ch; margin: 0 0 .8rem; color: #171b26; font-size: clamp(2rem, 6vw, 3.7rem); letter-spacing: -.045em; line-height: 1.05; }
.lede { max-width: 70ch; margin: 0; color: #4b5364; font-size: clamp(1rem, 2.6vw, 1.15rem); line-height: 1.65; }
.counter-card { margin-top: 1.8rem; padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid #e0e4ed; border-radius: 1.15rem; background: #fff; box-shadow: 0 1rem 3rem #18264712; }
.counter-card h2 { margin: 0 0 1.15rem; font-size: 1.35rem; }
label { display: block; margin: 0 0 .5rem; font-weight: 750; }
input, button { width: 100%; min-height: 3.1rem; border-radius: .7rem; font: inherit; }
input { padding: .75rem .9rem; border: 1px solid #aeb7c8; color: #202534; background: #fff; }
input::placeholder { color: #777f8f; opacity: 1; }
.hint { margin: .45rem 0 0; color: #667085; font-size: .9rem; line-height: 1.5; }
button { margin-top: 1rem; padding: .7rem 1rem; border: 0; color: #fff; background: #244ca8; font-weight: 800; cursor: pointer; }
button:hover:not(:disabled) { background: #183a89; }
button:disabled { cursor: wait; opacity: .65; }
.status { min-height: 1.5rem; margin: .8rem 0 0; color: #41495a; line-height: 1.5; }
.status[data-kind="error"] { color: #a51d28; }
.result { display: none; margin-top: 1rem; padding: 1.1rem; border: 1px solid #d8e0f2; border-radius: .85rem; background: #f4f7ff; }
.result[data-visible="true"] { display: block; }
.result-label { margin: 0; color: #48546d; font-size: .95rem; font-weight: 700; }
.count { margin: .1rem 0 .4rem; color: #172a53; font-size: clamp(2.5rem, 11vw, 4rem); font-variant-numeric: tabular-nums; font-weight: 850; letter-spacing: -.05em; overflow-wrap: anywhere; }
.metadata { margin: .3rem 0 0; color: #4b5364; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.method { margin-top: 2rem; padding: 0 .15rem; color: #444c5c; line-height: 1.75; }
.method h2 { margin: 1.7rem 0 .5rem; color: #202534; font-size: 1.35rem; letter-spacing: -.015em; }
.method h2:first-child { margin-top: 0; }
.method h3 { margin: 1.3rem 0 .35rem; color: #202534; font-size: 1.08rem; }
.method p { margin: .55rem 0; }
.method ul, .method ol { padding-left: 1.4rem; }
.related { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.related a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .45rem .8rem; border: 1px solid #d5ddec; border-radius: 999px; background: #fff; font-weight: 700; text-decoration: none; }
.ad { width: 100%; margin: 1.75rem auto; text-align: center; }
.ad-label { margin: 0 0 .35rem; color: #687184; font-size: .72rem; letter-spacing: .04em; }
.ad ins.adsbygoogle { display: block; width: 100%; min-height: 280px; }
.ad-bottom ins.adsbygoogle { min-height: 110px; }
.faq { padding: 0; list-style: none; }
.faq li { padding: .85rem 0; border-top: 1px solid #e0e4ed; }
.faq strong { display: block; margin-bottom: .25rem; color: #202534; }
.site-foot { border-top: 1px solid #e3e6ee; background: #fff; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; width: min(100% - 2rem, 1100px); margin: auto; padding: 1.25rem 0; color: #626b7c; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.foot-links a { color: #45516a; text-decoration: none; }
html[data-theme="dark"] { color-scheme: dark; color: #edf1fa; background: #10131a; }
html[data-theme="dark"] body { background: radial-gradient(ellipse at 50% -24rem, #27365b 0, #10131a 52rem); }
html[data-theme="dark"] .site-head, html[data-theme="dark"] .site-foot, html[data-theme="dark"] .counter-card, html[data-theme="dark"] .related a { border-color: #343d51; background: #181d28; }
html[data-theme="dark"] .brand, html[data-theme="dark"] h1, html[data-theme="dark"] .counter-card h2, html[data-theme="dark"] .method h2, html[data-theme="dark"] .method h3, html[data-theme="dark"] .faq strong { color: #f4f6fb; }
html[data-theme="dark"] .lede, html[data-theme="dark"] .method, html[data-theme="dark"] .metadata, html[data-theme="dark"] .status, html[data-theme="dark"] .foot-row, html[data-theme="dark"] .hint { color: #c2cadb; }
html[data-theme="dark"] input { border-color: #58647d; color: #fff; background: #10141d; }
html[data-theme="dark"] .result { border-color: #3d4961; background: #111620; }
html[data-theme="dark"] .result-label { color: #bdc7da; }
html[data-theme="dark"] .count { color: #c7d6ff; }
html[data-theme="dark"] .method h2, html[data-theme="dark"] .method h3, html[data-theme="dark"] .faq strong { color: #f4f6fb; }
html[data-theme="dark"] .faq li { border-color: #343d51; }
html[data-theme="dark"] .foot-links a { color: #bfcbe3; }
@media (max-width: 560px) { .head-row { align-items: flex-start; flex-direction: column; justify-content: center; padding: .7rem 0; } .head-nav { justify-content: flex-start; } }
@media (prefers-reduced-motion: no-preference) { button, .related a { transition: background-color .14s ease; } }
