:root {
    --bg: #fff9f3;
    --surface: #ffffff;
    --surface-2: #fff3e6;
    --surface-3: #ffe7cf;
    --text: #2b1a0f;
    --muted: #7c6354;
    --line: #f0d7c2;
    --accent: #ea580c;
    --accent-2: #f97316;
    --accent-soft: #ffedd5;
    --accent-contrast: #ffffff;
    --danger: #b42318;
    --danger-soft: #fee4e2;
    --success: #067647;
    --success-soft: #dcfae6;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --shadow: 0 1px 2px rgba(79, 44, 18, .05), 0 10px 30px rgba(120, 70, 30, .08);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1180px;
    --header-h: 72px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-contrast); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -.2em; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .74rem; color: var(--muted); font-weight: 600; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 44px; padding: .55rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
    font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
    text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: .35rem .7rem; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: .75rem 1.35rem; font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .4rem; }
.site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.main-nav { margin-left: .5rem; }
.nav-list, .submenu, .footer-links, .mobile-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: .2rem; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > span { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem .6rem; border-radius: 8px; color: var(--text); font-size: .92rem; font-weight: 500; }
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { background: var(--surface-2); color: var(--accent); text-decoration: none; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .4rem; display: none; z-index: 20; }
.has-children:hover .submenu, .has-children:focus-within .submenu { display: block; }
.submenu a { display: block; padding: .45rem .6rem; border-radius: 6px; color: var(--text); font-size: .9rem; }
.submenu a:hover { background: var(--surface-2); text-decoration: none; }
.header-search { display: flex; align-items: center; margin-left: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .2rem .15rem .85rem; max-width: 250px; flex: 1 1 160px; }
.header-search input { border: 0; background: transparent; width: 100%; min-height: 36px; outline: none; font-size: .9rem; }
.header-search button { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn { width: 42px; height: 42px; border: 1px solid transparent; background: transparent; border-radius: 10px; display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.menu-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); padding: .75rem 1rem 1rem; }
.mobile-menu > li > a { display: block; padding: .6rem .4rem; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .submenu { position: static; display: block; border: 0; box-shadow: none; padding-left: 1rem; }
.mobile-search { display: flex; gap: .5rem; margin-top: .75rem; }
.mobile-search input { flex: 1; }
.flash { display: flex; gap: .5rem; align-items: center; margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .92rem; }
.flash-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(880px 430px at 88% -18%, #ffd6ae 0%, rgba(255, 214, 174, 0) 64%),
        radial-gradient(560px 300px at 6% 118%, #ffe8d2 0%, transparent 62%),
        linear-gradient(180deg, #fff8f0 0%, #fff9f3 100%);
    border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-inner > * { min-width: 0; }
.hero h1 { margin: .7rem 0 .8rem; }
.hero-copy > p { font-size: 1.08rem; color: var(--muted); max-width: 620px; }
.hero-search { display: flex; gap: .5rem; margin: 1.3rem 0 1.1rem; max-width: 640px; }
.hero-search input { flex: 1; min-height: 50px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 0 1rem; }
.hero-stats { display: flex; gap: 1.5rem; color: var(--muted); font-size: .9rem; }
.hero-stats strong { color: var(--text); font-size: 1.15rem; }
.hero-panel { background: color-mix(in srgb, var(--surface) 92%, #fff1e2); border: 1px solid #f3c69d; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: .25rem .3rem .65rem; }
.hero-panel > a { display: flex; align-items: center; gap: .65rem; padding: .6rem .35rem; border-top: 1px solid var(--line); color: var(--text); }
.hero-panel > a:hover { text-decoration: none; color: var(--accent); }
.hero-panel > a > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: .92rem; font-weight: 600; }
.hero-panel small { color: var(--muted); font-weight: 400; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-panel .icon:last-child { width: 16px; color: var(--muted); }
.tool-card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.tool-card-icon .icon { width: 21px; height: 21px; }
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: .2rem 0 0; }
.section-head .eyebrow { margin-bottom: .15rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; }
.link-arrow .icon { width: 16px; }
.featured-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.article-thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft), var(--surface-3)); overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { display: grid; place-items: center; height: 100%; color: var(--accent); }
.thumb-fallback .icon { width: 38px; height: 38px; }
.article-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.article-card h3 { font-size: 1.06rem; margin: 0; }
.article-card h3 a { color: var(--text); }
.article-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .76rem; margin-top: .35rem; }
.article-meta span + span::before { content: "·"; margin-right: .5rem; }
.tool-group { margin-bottom: 1.8rem; }
.tool-group-title { font-size: 1.05rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.tool-group-title span { font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.tool-card { display: flex; align-items: center; gap: .75rem; padding: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); box-shadow: 0 1px 1px rgba(0,0,0,.02); }
.tool-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.tool-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tool-card-body strong { font-size: .94rem; }
.tool-card-body > span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.tool-card-arrow { width: 16px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.category-card { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.category-card:hover { border-color: var(--accent); text-decoration: none; }
.category-card strong { flex: 1; font-size: .95rem; }
.category-card > span:last-child { color: var(--muted); font-size: .78rem; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--accent); color: var(--accent-contrast); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.cta-band h2 { color: var(--accent-contrast); margin: .2rem 0 .3rem; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .eyebrow { color: var(--accent-contrast); opacity: .8; }
.subscribe-form { display: flex; gap: .5rem; flex: 1; max-width: 460px; }
.subscribe-form input { flex: 1; min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 0 .9rem; }
.cta-band .subscribe-form input { border-color: transparent; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .8rem; max-width: 320px; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--text); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-newsletter p { color: var(--muted); font-size: .86rem; }
.footer-newsletter .subscribe-form { flex-direction: column; max-width: 100%; }
.footer-rss { display: inline-flex; gap: .4rem; align-items: center; margin-top: .8rem; font-size: .84rem; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.socials a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.8rem; }
.page-head h1 { margin: .35rem 0 .4rem; }
.page-head p { color: var(--muted); max-width: 720px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--text); }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.filter-bar input, .filter-bar select, .inline-search input { min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 0 .85rem; }
.filter-bar input { flex: 1 1 260px; }
.inline-search { display: flex; gap: .5rem; min-width: min(100%, 340px); }
.inline-search input { flex: 1; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .82rem; font-weight: 500; }
.chip:hover, .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); text-decoration: none; }
.chip span { opacity: .65; font-size: .72rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.tag { padding: .2rem .55rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.tag:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state > .icon { width: 44px; height: 44px; color: var(--accent); }
.empty-state h2 { margin-top: .8rem; color: var(--text); }
.pagination { margin-top: 2rem; }
.pagination ul { display: flex; justify-content: center; align-items: center; gap: .3rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.page-link { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: .88rem; }
.page-link.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.page-link.disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { color: var(--muted); padding: 0 .3rem; }
.result-count { color: var(--muted); margin-bottom: 1rem; }
.search-results { display: flex; flex-direction: column; gap: 1rem; }
.search-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.search-item h2 { font-size: 1.2rem; margin: .2rem 0 .4rem; }
.search-item p { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
mark { background: var(--accent-soft); color: var(--text); padding: 0 .15em; border-radius: 3px; }
.tool-page { padding: 1.4rem 0 0; }
.tool-head { display: flex; align-items: flex-start; gap: 1rem; margin: .5rem 0 1.5rem; }
.tool-head-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.tool-head-icon .icon { width: 28px; height: 28px; }
.tool-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .2rem 0 .4rem; }
.tool-head p { color: var(--muted); margin: 0; max-width: 800px; }
.tool-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.2rem; align-items: start; }
.tool-form { padding: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; padding: 1rem 1.1rem; }
.tool-form .field-grid { padding: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: .82rem; font-weight: 650; color: var(--text); }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="url"], .field input[type="password"], .field input[type="search"], .field select, .field textarea {
    width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: .5rem .75rem; outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.unit { display: grid; place-items: center; padding: 0 .65rem; background: var(--surface-2); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.field-help { font-size: .74rem; color: var(--muted); margin: 0; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .9rem; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 0 1.1rem 1.1rem; }
.auto-note { font-size: .74rem; color: var(--muted); }
.tool-result-wrap { min-width: 0; }
.result-placeholder { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); padding: 2.4rem 1.4rem; text-align: center; color: var(--muted); }
.result-placeholder-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; margin: 0 auto .8rem; }
.result-placeholder h2 { font-size: 1.2rem; margin-bottom: .3rem; color: var(--text); }
.result-placeholder p { margin: 0 0 .4rem; font-size: .9rem; }
.result-card { overflow: hidden; }
.result-summary { padding: 1.2rem 1.2rem 1rem; background: linear-gradient(135deg, var(--accent-soft), transparent); border-bottom: 1px solid var(--line); }
.result-value { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.result-label { font-weight: 600; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.result-note { margin: .5rem 0 0; color: var(--muted); font-size: .85rem; }
.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); }
.result-rows { margin: 0; padding: .4rem 1.2rem .8rem; }
.result-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.result-rows > div:last-child { border-bottom: 0; }
.result-rows dt { color: var(--muted); font-size: .84rem; }
.result-rows dd { margin: 0; text-align: right; font-weight: 650; font-size: .9rem; overflow-wrap: anywhere; }
.result-rows dd small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.result-warnings { padding: .8rem 1.2rem 1rem; background: var(--warning-soft); border-top: 1px solid var(--line); }
.result-warnings p { margin: 0 0 .35rem; font-size: .82rem; color: var(--text); display: flex; gap: .35rem; }
.result-warnings p:last-child { margin-bottom: 0; }
.result-warnings .icon { color: var(--warning); width: 17px; height: 17px; margin-top: .2rem; }
.result-error { padding: 1.2rem; }
.result-error-head { display: flex; align-items: center; gap: .5rem; color: var(--danger); }
.result-error-head h2 { margin: 0; font-size: 1.15rem; color: var(--danger); }
.result-error p { margin: .6rem 0 0; color: var(--text); }
.qr-box { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.qr-canvas-wrap { background: #fff; padding: .6rem; border-radius: 8px; border: 1px solid var(--line); }
.qr-canvas-wrap canvas { display: block; max-width: 100%; height: auto; }
.qr-text { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; max-width: 280px; }
.table-wrap { overflow-x: auto; }
.table-wrap table, .prose table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table-wrap th, .table-wrap td, .prose th, .prose td { padding: .55rem .65rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap thead th, .prose thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.result-table { margin: .5rem 1.2rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.result-table table { min-width: 420px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.article-page { padding-top: 1.4rem; }
.article-header { max-width: 860px; margin-bottom: 1.2rem; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: .35rem 0 .7rem; }
.article-lead { color: var(--muted); font-size: 1.08rem; }
.article-byline { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }
.article-byline div { display: flex; flex-direction: column; font-size: .85rem; }
.article-byline span { color: var(--muted); font-size: .78rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: 0 0 auto; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.article-cover { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.series-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.series-links { display: grid; gap: .35rem; margin-top: .5rem; }
.series-links a { padding: .35rem .5rem; border-radius: 6px; font-size: .88rem; color: var(--muted); }
.series-links a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.prose { font-size: 1.02rem; max-width: 760px; }
.prose h2 { margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { margin-top: 1.5em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose p, .prose li { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose blockquote { margin: 1.2rem 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--muted); }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; font-size: .9em; }
.prose pre { overflow-x: auto; }
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.code-block { margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: .35rem .7rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.code-copy { border: 0; background: transparent; color: var(--accent); font-size: .75rem; font-weight: 600; }
.code-block pre { margin: 0; padding: .9rem; overflow-x: auto; font-size: .84rem; line-height: 1.55; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.2rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.tool-inline-card { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
.tool-inline-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.tool-inline-body { flex: 1; min-width: 0; }
.tool-inline-title { display: block; font-weight: 700; color: var(--text); margin: .1rem 0; }
.tool-inline-body p { margin: 0; color: var(--muted); font-size: .82rem; }
.tool-inline-missing { color: var(--muted); font-size: .85rem; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.toc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.toc-card h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.toc-card ol { list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.toc-card li { margin-bottom: .3rem; }
.toc-card .toc-level-3 { padding-left: .8rem; }
.toc-card a { color: var(--muted); }
.toc-card a:hover { color: var(--accent); }
.ad-wrap { margin: 0 0 1rem; }
.ad-header-wrap { margin-top: 1rem; }
.ad-footer-wrap { margin: 0 auto 1rem; }
.ad-slot { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); overflow: hidden; text-align: center; }
.ad-placeholder { padding: 2rem 1rem; color: var(--muted); font-size: .78rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.side-card h2 { font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
.side-link { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid var(--line); color: var(--text); font-size: .84rem; }
.side-link .icon { color: var(--accent); width: 17px; height: 17px; margin-top: .15rem; }
.article-tags { margin-top: 1.5rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.2rem 0; font-size: .82rem; color: var(--muted); }
.author-box { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 1.4rem 0; }
.author-box h2 { font-size: 1rem; margin: 0 0 .2rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .86rem; }
.tool-inline-list { margin: 1.6rem 0; }
.tool-inline-list h2 { font-size: 1.2rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.post-nav a { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav span { color: var(--muted); font-size: .76rem; }
.post-nav strong { font-size: .9rem; }
.post-nav-next { text-align: right; }
.comments { margin-top: 2rem; }
.comments h2 { display: flex; align-items: center; gap: .5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
.comment { display: flex; gap: .7rem; }
.comment-body { flex: 1; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.comment-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.comment-head time { color: var(--muted); font-size: .74rem; }
.comment-body p { margin: .3rem 0; font-size: .92rem; }
.comment-reply { border: 0; background: transparent; color: var(--accent); font-size: .78rem; font-weight: 600; padding: 0; }
.comment-children { margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.comment-form { margin-top: 1.2rem; padding: 0; }
.comment-form h3 { padding: 1rem 1.1rem 0; margin: 0; }
.comment-form > .btn { margin: 0 1.1rem 1rem; }
.comment-form > .field-help { padding: 0 1.1rem 1rem; margin: 0; }
.reply-note { margin: .8rem 1.1rem 0; padding: .5rem .7rem; background: var(--accent-soft); border-radius: 6px; font-size: .82rem; }
.reply-note button { border: 0; background: transparent; color: var(--accent); font-weight: 600; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.faq-list { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .2rem .9rem; }
.faq-item summary { cursor: pointer; font-weight: 650; padding: .7rem 0; }
.faq-item p { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.page-view { padding: 1.4rem 0 3rem; }
.page-head-simple { margin: 1rem 0 1.5rem; }
.page-view .prose { max-width: none; }
.form-card { padding: 1.2rem; }
.form-card > .btn { margin-left: 1.1rem; }
.form-card .field-grid { padding: 0 0 1rem; }
.error-page { text-align: center; padding: 5rem 0; }
.error-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--accent-soft); line-height: 1; display: block; }
.error-page h1 { margin-top: -.5rem; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 1.2rem; }
.error-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.read-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 60; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 1.2rem); background: var(--text); color: var(--bg); padding: .6rem .9rem; border-radius: 8px; font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.related-section { padding-left: 0; padding-right: 0; }
@media (max-width: 1023px) {
    .main-nav { display: none; }
    .menu-toggle { display: grid; }
    .header-search { max-width: 220px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-panel { order: 2; }
    .tool-workspace { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .article-sidebar > * { flex: 1 1 260px; }
    .featured-grid, .article-grid, .tool-grid, .category-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .cta-band .subscribe-form { max-width: 100%; width: 100%; }
}
@media (max-width: 639px) {
    .container { padding: 0 .85rem; }
    .header-inner { gap: .5rem; }
    .header-search { display: none; }
    .brand-text small { display: none; }
    .hero { padding-top: 2rem; }
    .hero-search { flex-direction: column; }
    .hero-search .btn { width: 100%; }
    .hero-stats { gap: 1rem; flex-wrap: wrap; }
    .featured-grid, .article-grid, .tool-grid, .category-grid, .footer-grid { grid-template-columns: 1fr; }
    .field-grid { grid-template-columns: 1fr; }
    .page-head-row { flex-direction: column; align-items: flex-start; }
    .inline-search { width: 100%; }
    .filter-bar .btn { flex: 1; }
    .result-rows > div { flex-direction: column; gap: .1rem; }
    .result-rows dd { text-align: left; }
    .article-sidebar { flex-direction: column; }
    .post-nav { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .cta-band { padding: 1.4rem; }
    .subscribe-form { flex-direction: column; }
    .author-box { flex-direction: column; }
    .tool-inline-card { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.section-sub { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; max-width: 640px; }
.tool-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-grid-home .tool-card { align-items: flex-start; min-height: 118px; }
.tool-grid-home .tool-card-body strong { margin-top: .1rem; line-height: 1.3; }
.tool-grid-home .tool-card-body > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card-cat { color: var(--accent); font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-tools-cta { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin-top: 1.5rem; text-align: center; }
.home-tools-cta span { color: var(--muted); font-size: .8rem; }
.ad-home-wrap { margin: 1.5rem auto 2rem; }
.article-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-articles { border-top: 1px solid var(--line); }
.house-ad { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); color: var(--text); text-align: left; }
.house-ad:hover { text-decoration: none; border-color: var(--accent); }
.house-ad-label { align-self: flex-start; padding: .1rem .35rem; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.house-ad-copy { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.house-ad-copy strong { font-size: .9rem; line-height: 1.25; }
.house-ad-copy span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.house-ad-cta { color: var(--accent); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.house-ad-sidebar { flex-direction: column; align-items: flex-start; }
.house-ad-sidebar .house-ad-cta { margin-top: .2rem; }
.ad-slot-house { border: 0; background: transparent; text-align: left; }
.ad-header-wrap .house-ad { padding: .65rem 1rem; }
.ad-footer-wrap .house-ad { padding: .65rem 1rem; }
.ad-inline { margin: 2.25rem 0; }
.ad-inline .ad-slot { border-radius: var(--radius-sm); }
.ad-article-bottom { margin: 2rem 0 0; }
@media (max-width: 1100px) {
    .tool-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ad-tools-index { margin: 1.5rem 0 1.5rem; }
.ad-tool-detail { margin: 1.75rem 0 1.75rem; }
.ad-tool-articles { margin: 1.5rem auto 2rem; }
.ad-sidebar-top { margin: .25rem 0 0; }
.article-sidebar { position: static; }
.side-posts { padding-bottom: .7rem; }
.side-posts h2 { margin-bottom: .4rem; }
.side-post { display: flex; gap: .55rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--text); }
.side-post:hover { text-decoration: none; color: var(--accent); }
.side-post-thumb { width: 66px; height: 46px; border-radius: 6px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.side-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-post-thumb .icon { width: 18px; height: 18px; }
.side-post-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.side-post-body strong { font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-post-body small { color: var(--muted); font-size: .65rem; }
.side-categories { list-style: none; margin: 0; padding: 0; }
.side-categories a { display: flex; justify-content: space-between; gap: .5rem; padding: .38rem 0; border-top: 1px solid var(--line); color: var(--text); font-size: .8rem; }
.side-categories a:hover { color: var(--accent); text-decoration: none; }
.side-categories a span:last-child { color: var(--muted); font-size: .7rem; }
/* Resistor playground */
.tool-page .tool-head {
    background:
        radial-gradient(520px 190px at 12% -20%, #ffedd5 0%, transparent 65%),
        linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow);
}
.tool-head-icon { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: var(--accent); box-shadow: 0 8px 20px rgba(234, 88, 12, .16); }
.resistor-demo {
    position: relative;
    margin: 1.5rem 0 1.75rem;
    padding: 1.35rem 1.5rem 1.2rem;
    border: 1px solid #f3c69d;
    border-radius: var(--radius);
    background:
        radial-gradient(680px 240px at 15% -10%, #ffedd5 0%, transparent 68%),
        linear-gradient(135deg, #fffaf4, #fff3e6);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.resistor-demo::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 26px solid rgba(234, 88, 12, .055);
    pointer-events: none;
}
.resistor-demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.resistor-demo-head h2 { font-size: 1.3rem; margin: .15rem 0 0; }
.resistor-demo-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.resistor-demo-actions .pill { background: #fff; border-color: #f3c69d; color: #9a3412; }
.resistor-stage { display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 1.25rem 0 .8rem; position: relative; z-index: 1; }
.resistor-wire { position: relative; flex: 1 1 40px; max-width: 190px; height: 8px; border-radius: 99px; background: linear-gradient(180deg, #fbbf24, #f59e0b 50%, #d97706); box-shadow: 0 2px 3px rgba(146, 64, 14, .22); }
.resistor-wire::after { content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fffbeb; box-shadow: 0 0 0 3px rgba(251, 146, 60, .28), 0 0 16px 5px rgba(249, 115, 22, .75); animation: resistorCurrent 2.8s linear infinite; }
.resistor-wire:last-child::after { animation-delay: -1.4s; }
.resistor-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: clamp(220px, 58%, 430px);
    height: 92px;
    padding: 0 1.5rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.6) 0%, transparent 28%),
        linear-gradient(180deg, #fbe3c8 0%, #e7b98b 43%, #cf9967 74%, #b97b48 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .7),
        inset 0 -10px 16px rgba(120, 53, 15, .24),
        0 14px 28px rgba(120, 62, 24, .2);
    transition: transform .3s ease, box-shadow .3s ease;
}
.resistor-body::before { content: ""; position: absolute; inset: 10px 16px auto; height: 14px; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.42), transparent); pointer-events: none; }
.resistor-band { flex: 0 0 14px; margin: 8px 0; border: 0; border-radius: 3px; background: var(--band-color, #111827); cursor: pointer; box-shadow: inset -2px 0 2px rgba(255,255,255,.28), inset 2px 0 2px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.2); transition: transform .18s ease, box-shadow .18s ease, background .25s ease; }
.resistor-band:hover, .resistor-band.active { transform: scaleX(1.35) scaleY(1.025); box-shadow: 0 0 0 3px #fffaf4, 0 0 0 5px var(--accent), 0 6px 14px rgba(154, 52, 18, .28); z-index: 3; }
.resistor-band.is-light { box-shadow: inset 0 0 0 1px rgba(80, 50, 20, .26), 0 1px 2px rgba(0,0,0,.18); }
.resistor-band.is-light:hover, .resistor-band.is-light.active { box-shadow: 0 0 0 3px #fffaf4, 0 0 0 5px var(--accent); }
.resistor-demo.is-pulse .resistor-body { transform: translateY(-3px) scale(1.012); box-shadow: inset 0 2px 3px rgba(255,255,255,.7), inset 0 -10px 16px rgba(120,53,15,.24), 0 20px 36px rgba(234,88,12,.22); }
.resistor-demo-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; padding-top: .2rem; }
.resistor-value { display: block; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.035em; color: var(--accent); line-height: 1.15; }
.resistor-value-note { display: block; color: var(--muted); font-size: .78rem; }
.resistor-flow-label { display: inline-flex; align-items: center; gap: .35rem; color: #9a3412; font-size: .78rem; font-weight: 600; background: #fff; border: 1px solid #f3c69d; padding: .3rem .6rem; border-radius: 999px; }
.resistor-flow-label .icon { width: 15px; height: 15px; }
.resistor-palette { margin-top: 1rem; padding: .8rem .9rem; background: rgba(255,255,255,.72); border: 1px solid #f3c69d; border-radius: 12px; position: relative; z-index: 1; }
.resistor-palette-label { display: block; color: #9a3412; font-size: .78rem; font-weight: 700; margin-bottom: .5rem; }
.resistor-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.resistor-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--swatch); box-shadow: 0 0 0 1px rgba(80,50,20,.22), 0 2px 5px rgba(80,50,20,.14); transition: transform .15s ease, box-shadow .15s ease; }
.resistor-swatch:hover { transform: translateY(-2px) scale(1.08); }
.resistor-swatch.active { box-shadow: 0 0 0 2px var(--accent), 0 3px 8px rgba(234,88,12,.28); transform: scale(1.08); }
@keyframes resistorCurrent {
    0% { left: -4%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 98%; opacity: 0; }
}
@media (max-width: 639px) {
    .tool-grid-home, .article-grid-4 { grid-template-columns: 1fr; }
    .house-ad { flex-wrap: wrap; }
    .house-ad-label { order: -1; }
    .house-ad-cta { margin-left: auto; }
    .side-post-thumb { width: 76px; height: 52px; }
    .ad-inline { margin: 1.75rem 0; }
    .ad-tool-detail { margin: 1.4rem 0; }
    .ad-article-bottom { margin-top: 1.6rem; }
    .tool-page .tool-head { padding: 1.15rem; }
    .resistor-demo { padding: 1.1rem; }
    .resistor-demo-head { flex-direction: column; }
    .resistor-body { width: clamp(200px, 72%, 300px); height: 78px; padding: 0 1rem; gap: 6px; }
    .resistor-band { flex-basis: 12px; }
    .resistor-wire { max-width: 70px; }
}
