
/* RFCheck appearance — same offline palette on every public page.
   No filter/inversion: trace and Smith colors retain their physical meaning. */
:root {--theme-focus:#2278c7;--theme-track:#e5edf7;--theme-track-border:#b4c5d8;--theme-thumb:#fff}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{
 color-scheme:dark;--ink:#e9f1fb;--muted:#b1c3d8;--line:#32465d;
 --blue:#93c5ff;--blue2:#78b3fa;--panel:#152337;--soft:#192b40;
 --green:#75dfae;--red:#ff9999;
 --rf-ink:#edf4ff;--rf-ink-2:#c6d6e9;--rf-muted:#afc1d5;
 --rf-primary:#8ac0ff;--rf-primary-dark:#b3d6ff;
 --rf-teal:#65dbc3;--rf-teal-dark:#97f1df;
 --rf-warning:#ffce92;--rf-danger:#ff9d9d;--rf-focus:#95caff;
 --rf-page:#0c1625;--rf-paper:#152438;--rf-soft:#1b2d43;--rf-line:#31455c;
 --rf-shadow:0 12px 32px rgba(0,0,0,.20);
 --theme-focus:#a4ceff;--theme-track:#243b54;--theme-track-border:#4b6784;--theme-thumb:#e3f0ff;
}
.rf-theme-toggle{display:inline-flex;align-items:center;gap:9px;flex:none;min-width:106px;min-height:44px;margin-left:2px;padding:4px 9px 4px 5px;border:1px solid #c5d5e7;border-radius:999px;background:#f2f7fc;color:#254c72;font-size:12px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s}
.rf-theme-toggle:hover{background:#e6f1fc;border-color:#91b5d5}
.rf-theme-toggle:focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}
.rf-theme-track{width:49px;height:27px;border-radius:22px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 5px;background:var(--theme-track);border:1px solid var(--theme-track-border);font-size:15px}
.rf-theme-sun,.rf-theme-moon{z-index:1;pointer-events:none}
.rf-theme-sun{color:#92550a}.rf-theme-moon{color:#576d8f}
.rf-theme-thumb{position:absolute;width:21px;height:21px;top:2px;left:2px;border-radius:50%;background:var(--theme-thumb);box-shadow:0 1px 5px #08203733;transition:transform .18s cubic-bezier(.2,.8,.2,1)}
html[data-theme="dark"] .rf-theme-thumb{transform:translateX(22px)}
html[data-theme="dark"] .rf-theme-toggle{background:#1d334b;border-color:#45637f;color:#e4f0ff}
html[data-theme="dark"] .rf-theme-toggle:hover{background:#27415d}
html[data-theme="dark"] .rf-theme-sun{color:#e5b86d}
html[data-theme="dark"] .rf-theme-moon{color:#e5f1ff}
@media(max-width:820px){.topbar .local-pill{display:none}.rf-theme-toggle{min-width:94px}}
@media(max-width:540px){
 .topbar{height:auto;min-height:56px;flex-wrap:wrap;align-content:center;gap:0 8px;padding:6px 10px}
 .topbar .brand{order:0}
 .topbar .rf-theme-toggle{order:1;margin-left:auto;min-height:42px}
 .topbar .site-nav{order:2;flex:1 0 100%;width:100%;margin:0;justify-content:center;gap:clamp(6px,2vw,18px)}
 .topbar .site-nav>a,.topbar .site-nav-more>summary{min-height:32px}
}
@media(prefers-reduced-motion:reduce){.rf-theme-toggle,.rf-theme-thumb{transition:none}}
/* Main semantic surfaces — new stylesheet always comes after the page CSS. */
html[data-theme="dark"] body,
html[data-theme="dark"] :is(.guide-page,.guide-page-v2,.calc-page,.ref-page,.policy-page){background:var(--rf-page);color:var(--rf-ink)}
html[data-theme="dark"] .topbar{background:rgba(14,26,43,.97);border-bottom-color:var(--rf-line)}
html[data-theme="dark"] .topbar .site-nav-menu{background:#1a2b40;border-color:#3b506b}
html[data-theme="dark"] .topbar .site-nav-menu a:hover{background:#294360}
html[data-theme="dark"] .local-pill{background:#183c39;color:#9cf3d8}
html[data-theme="dark"] :is(.workspace,.dropzone,.file-row,.plot-shell,.plot-card,.marker-card,.marker-chip,.legend .parameter-key,.req-result,.info,.cascade-card,.cascade-tool,.cascade-workbench,.split-cartesian-panel,.split-smith-panel,.smith-quick-card,
 .calc-card,.calc-reference,.calc-search-wrap input,.calc-number,.calc-tool-pills button,.calc-related-links button,.calc-category-tabs button,.calc-no-results,.rf-unit-control select,.reflect-configuration select,.match-component,
 .ref-aside,.ref-topic,.ref-end,.ref-wave-case,.ref-wave-track,.ref-no-results,
 .guide-reader,.guide-lesson,.guide-app,.guide-section,.guide-toc,.guide-lab,.guide-note,.guide-hero,.guide-research-note,.guide-stage,.guide-stage-card,.guide-lab-head,.guide-article,.policy-grid article,.policy-callout,.privacy-card){
 background:#152438!important;color:var(--rf-ink);border-color:var(--rf-line)}
/* Secondary layers remain distinct from cards for visual hierarchy. */
html[data-theme="dark"] :is(.sidebar,.plot-toolbar,.segmented,.marker-readout,.marker-cell.delta,.interaction-help,.requirement-form,.qual-summary.empty,.learn-rail,.delta-toolbar,.guide-promo,.guide-note,
 .calc-tool-browser,.calc-formula,.calc-math-content,.calc-result-explainer,.rf-metrics>div,.calc-number-result,.match-candidate,.match-verify,
 .ref-equation,.ref-example,.ref-grid>div,.ref-derivation,.ref-wave-figure,.ref-wave-heading,.ref-wave-zero,.ref-aside-note,.ref-diagram,.ref-smith,.ref-data-table caption,.ref-data-table th,.ref-derivation>.rf-math-line,
 .guide-equation-v2,.guide-formula,.guide-equation,.guide-deep-grid>article,.guide-two-col>div,.guide-three-col>div,.concept-card,.guide-reader-top,.guide-reader-bottom,.guide-reader-progress,.guide-reader-tools,.smith-teaching-panel,.smith-match-workbench,.smith-match-explainer,.smith-match-readouts>div,.smith-grid-proof,.smith-context,.smith-quick-readout,.cascade-workbench-summary,.cascade-signal-flow,.cascade-matrix,.cascade-matrix>div,.cascade-mismatch-results){
 background:#1c3046!important;color:var(--rf-ink);border-color:var(--rf-line)}
html[data-theme="dark"] :is(.empty-plot,.guide-promo,.guide-coverage,.mini-spectrum,.phase-animation){background:linear-gradient(155deg,#1b2d42,#142236)!important;color:var(--rf-muted)}
/* Text colors are explicitly lifted; leave semantic pass/fail badges intact. */
html[data-theme="dark"] :is(.hero h1,.guide-section h2,.guide-section h3,.guide-intro h2,.guide-intro h3,.calc-card-heading h2,.calc-intro h1,.ref-topic h2,.ref-topic h3,.ref-hero h1,.policy-hero h1,
 .file-main,.marker-card-head>strong,.marker-cell strong,.marker-values strong,.marker-quick-card strong,.smith-quick-card strong,.cascade-workbench-summary-copy strong,.ref-topic b,.ref-example>strong,.ref-derivation h4,.calc-formula math,.guide-equation-v2 math,.ref-equation math,.smith-grid-proof math){color:#f2f7ff!important}
html[data-theme="dark"] :is(.hero p,.guide-intro p,.guide-two-col p,.guide-three-col p,.guide-note-v2 p,.guide-lesson>p,.guide-page-v2 p,.calc-hint,.calc-extra,.calc-intro p,.calc-reference p,.calc-card-heading p,.ref-topic p,.ref-end p,.policy-page p,.policy-page li,.ref-hero p,
 .calc-tool-browser .calc-tool-pills small,.calc-group-heading span,.calc-table-note,.ref-grid span,.ref-wave-track small,.smith-grid-key,.smith-grid-proof p,.guide-research-note span,.smith-match-status,.smith-teaching-panel p,.marker-values span,.marker-cell span,.interaction-help,.file-main small,.guide-promo p,.section-title){color:#b7c9dd}
html[data-theme="dark"] :is(.calc-tool-title,.calc-learn,.ref-chapter h3,.ref-chapter-jumps a,.ref-toc a[aria-current="location"],.guide-kicker,.guide-reader-eyebrow,.guide-source-note,.ref-eyebrow,.smith-match-readouts strong,.smith-match-title h3){color:#a6d3ff}
html[data-theme="dark"] :is(input,select,textarea,.requirement-form input,.requirement-form select,.marker-select,.marker-name,.ref-aside input,.smith-match-inputs input,.smith-match-inputs select){
 background:#101e30!important;color:#f0f7ff!important;border-color:#506782!important;accent-color:#90c8ff
}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#9bb1c9}
html[data-theme="dark"] :is(button,input,select,summary,textarea,a):focus-visible{outline:3px solid var(--rf-focus);outline-offset:2px}
html[data-theme="dark"] :is(.marker-tools button,.tool-button,.button-grid button,.demo-btn,.segmented button,.cascade-swap,.guide-secondary,.guide-reader-controls button,.guide-nav-button,.guide-toc>a,.guide-stage button,
 .calc-tool-browser .calc-tool-pills button,.calc-page .calc-tool-pills button,.calc-related-links button,.smith-lesson-steps button,.smith-perspective button,.smith-match-mode button,.smith-match-presets button,.smith-match-steps button,.ref-chapter-jumps a){
 background:#21364f!important;color:#d9eaff!important;border-color:#47617e!important
}
html[data-theme="dark"] :is(.segmented button.active,.button-grid button.active,.calc-page .calc-tool-browser .calc-tool-pills button[aria-pressed="true"],.calc-page .calc-tool-pills button[aria-pressed="true"],.ref-toc a[aria-current="location"],.smith-lesson-steps button[aria-pressed="true"],.smith-perspective button[aria-pressed="true"],.smith-match-mode button[aria-pressed="true"],.smith-match-steps button[aria-pressed="true"]){
 background:#214d60!important;color:#b9ffe6!important;border-color:#4e9e9c!important
}
html[data-theme="dark"] :is(.primary,.guide-primary,.guide-cta,.calc-actions button:not(:disabled),.ref-primary){background:#2b70b2!important;color:#fff!important;border-color:#4e95d3}
html[data-theme="dark"] :is(.primary,.guide-primary,.guide-cta,.calc-actions button:not(:disabled),.ref-primary):hover{background:#3583c9!important}
html[data-theme="dark"] :is(.calc-error,.error,.qual-summary.fail,.status.fail){background:#4b2530!important;color:#ffc0c7!important;border-color:#9f5060}
html[data-theme="dark"] :is(.privacy-card,.qual-summary.pass,.status.pass){background:#1b403b!important;color:#b6f7df!important;border-color:#39776b}
html[data-theme="dark"] :is(.calc-reference th,.ref-data-table th){background:#25415a!important;color:#dcecff}
html[data-theme="dark"] :is(.calc-reference td,.ref-data-table td){color:#c5d7e9;border-bottom-color:#354a62}
html[data-theme="dark"] .calc-reference tbody tr:nth-child(even){background:#192e44}
html[data-theme="dark"] :is(.calc-number-result,.calc-result-explainer){border-left-color:#77b9e8}
html[data-theme="dark"] :is(.ref-example code,.guide-equation-v2 code){background:#152d46;color:#c8e7ff}
/* Dedicated engineering graphics: neutral grids go dark; series/trace hues are never inverted. */
html[data-theme="dark"] :is(.plot-bg,.smith-bg){fill:#142438;stroke:#526781}
html[data-theme="dark"] .grid{stroke:#30465d}
html[data-theme="dark"] :is(.axis-label,.axis-title,.smith-reactance-label,.guide-smith-grid-label){fill:#c3d6ec;stroke:#142438}
html[data-theme="dark"] :is(.smith-axis-callout,.guide-smith-grid-label.major){fill:#cce5ff;stroke:#142438}
html[data-theme="dark"] :is(.guide-smith-boundary,.guide-smith-axis,.smith-axis-h){stroke:#68829b}
html[data-theme="dark"] .smith-circle{background:#17283c}
html[data-theme="dark"] :is(.ref-topology-figure,.ref-device,.ref-wave-device,.guide-smith-proof,.vna-source,.vna-coupler,.vna-dut,.vna-receiver){background:#25405b!important;color:#deeeff!important;border-color:#597793}
html[data-theme="dark"] :is(.guide-smith-label,.ref-wave-symbol,.ref-wave-arrow){color:#bee0ff}
html[data-theme="dark"] :is(.guide-promo,.smith-match-workbench,.calc-card,.ref-topic,.ref-aside){box-shadow:0 10px 27px rgba(0,0,0,.14)}
/* The focus outline and selection contrast apply to all six canonical pages. */

/* Inline SVG trace/marker presentation colors retain identity, with usable
   luminance against the dark plotting plane (no geometric/data changes). */
html[data-theme="dark"] svg [stroke="#15803d"]{stroke:#54dfa0}
html[data-theme="dark"] svg [fill="#15803d"]{fill:#54dfa0}
html[data-theme="dark"] svg [stroke="#7c3aed"]{stroke:#b198ff}
html[data-theme="dark"] svg [fill="#7c3aed"]{fill:#b198ff}
html[data-theme="dark"] svg [stroke="#475569"]{stroke:#a7bacd}
html[data-theme="dark"] svg [fill="#475569"]{fill:#a7bacd}
html[data-theme="dark"] svg [stroke="#334155"]{stroke:#b4c9da}
html[data-theme="dark"] svg [fill="#334155"]{fill:#b4c9da}

/* Reference topology diagrams: avoid light cards with near-white text in dark mode.
   Keep a deep but distinct code panel and real text contrast (no opacity fades). */
html[data-theme="dark"] .ref-page .ref-topology{
 background:#192e45!important;color:#e8f3ff!important;
 border:1px solid #486580!important;
}
html[data-theme="dark"] .ref-page .ref-topology>strong{
 color:#9bd4ff!important;
}
html[data-theme="dark"] .ref-page .ref-topology .ref-topology-figure{
 background:#10243a!important;color:#e7f3ff!important;
 border-color:#476786!important;
}
html[data-theme="dark"] .ref-page .ref-topology .ref-topology-figure span{
 color:inherit!important;
}
html[data-theme="dark"] .ref-page .ref-topology p,
html[data-theme="dark"] .ref-page .ref-topology p :is(b,strong,em,sub){
 color:#d4e3f3!important;
}
html[data-theme="dark"] .ref-page .ref-topology :is(code,math){
 color:#e7f3ff!important;
}
/* The left Reference sidebar remains visible beneath the fixed header. */
@media (min-width:701px){
 .ref-page .ref-aside{top:78px;max-height:calc(100vh - 92px);}
}
html[data-theme="dark"] .ref-page .ref-toc a[aria-current="location"]{
 background:#214d60!important;color:#b8ffe8!important;
 border-inline-start:3px solid #67dec5;
}
html[data-theme="light"] .ref-page .ref-toc a[aria-current="location"]{
 border-inline-start:3px solid #0d7e72;
}
.ref-page .ref-toc a[aria-current="location"] span{font-weight:800;}
/* Original RFellow vector mark: works on navy/dark and pale backgrounds. */
.topbar .brand>span{
 display:inline-block;flex:none;width:30px;height:30px;
 background-color:transparent!important;
 background-image:url("./favicon.svg");background-position:center;
 background-repeat:no-repeat;background-size:contain;
 overflow:hidden;text-indent:-200px;border-radius:8px;
}

/* Maintain readable unverified states on dark cards; no green PASS styling. */
html[data-theme="dark"] .qual-summary.incomplete,
html[data-theme="dark"] :is(.status.not_applicable,.status.no_data){background:#453621!important;color:#ffe0a6!important;border-color:#8d6d36!important}
html[data-theme="dark"] .qual-summary.incomplete :is(strong,span,small){color:#ffe0a6!important}
html[data-theme="dark"] .qual-counts .count-unverified{background:#453621!important;color:#ffe0a6!important;border-color:#8d6d36!important}
html[data-theme="dark"] .req-result :is(.req-coverage){color:#cfdae7}
html[data-theme="dark"] .req-result.req-no_data .req-coverage,
html[data-theme="dark"] .req-result.req-not_applicable .req-coverage{color:#ffe0a6}
html[data-theme="dark"] .status.partial_coverage{background:#453621!important;color:#ffe0a6!important;border-color:#8d6d36!important}
html[data-theme="dark"] .req-result.req-partial_coverage .req-coverage{color:#ffe0a6}

/* R2.17 dark-mode contrast and glare repairs, audited against owner captures.
   Color tokens below are opaque; never dim active links to imply disabled. */
html[data-theme="dark"] .topbar .site-nav-menu :is(a,a:visited){
 color:#dce9f7!important;opacity:1!important;
}
html[data-theme="dark"] .topbar .site-nav-menu :is(a:hover,a:focus-visible){
 color:#f4f9ff!important;background:#29435d!important;
}
html[data-theme="dark"] .topbar .site-nav-menu a[aria-current="page"]{
 color:#c6f5ec!important;background:#25465b!important;
}
/* Equations are the primary content; overrides the light-theme blue on b/math. */
html[data-theme="dark"] :is(.guide-equation-v2,.guide-formula,.guide-equation,.ref-equation,.calc-formula)
 :is(b,strong,math,mi,mn,mo,mfrac,msub,msup,mrow){
 color:#e0edfb!important;
}
html[data-theme="dark"] :is(.guide-equation-v2,.guide-formula,.guide-equation,.ref-equation,.calc-formula)
 :is(span,small,.guide-equation-label){
 color:#b7cbe0!important;
}
html[data-theme="dark"] :is(.guide-note-v2,.guide-tabs,.guide-tabs button.active,.guide-tabs button:hover,
 .guide-coverage,.guide-hero-v2,.guide-reader-top,.guide-reader-bottom){
 background:#1b2d42!important;color:#dce9f7!important;border-color:#3a526b!important;
}
html[data-theme="dark"] :is(.guide-tabs-title,.guide-tabs-title strong,.guide-tabs button,.guide-tabs button small,
 .guide-reader-top strong,.guide-research-note strong,.guide-research-note span){
 color:#bcd0e6!important;
}
html[data-theme="dark"] .guide-tabs button.active :is(b,small){color:#e4f3ff!important}
/* High-area viewer bars must not reuse the pale light-mode canvas. */
html[data-theme="dark"] :is(.measurement-shelf,.measurement-strips,.marker-strip,.delta-strip,
 .readout-heading,.marker-readout,.delta-readout-group,.interaction-help,.legend,
 .measurement-manage-panel,.delta-empty,.delta-control-card,.delta-result-card,
 .marker-cell,.marker-cell.active,.marker-cell.delta){
 background:#1b2c40!important;color:#d9e6f5!important;border-color:#344a62!important;
}
html[data-theme="dark"] :is(.measurement-glance,.glance-label,.marker-action-status,.delta-glance,
 .marker-strip strong,.marker-strip>div span,.delta-strip-head strong,.delta-strip-head>div span,
 .readout-heading strong,.readout-heading span,.marker-cell span,.marker-cell small,
 .marker-cell strong,.delta-empty strong,.delta-empty span,.delta-control-head>strong,
 .delta-control-status,.delta-result-head strong,.delta-result-pair,.delta-frequency span,
 .delta-frequency strong,.delta-result-card>p,.delta-readout-empty,.interaction-help,.legend){
 color:#c5d6e8!important;
}
html[data-theme="dark"] :is(.interaction-help b,.marker-cell strong,
 .delta-control-head>strong,.delta-result-head strong,.delta-frequency strong){
 color:#e1edfb!important;
}
html[data-theme="dark"] :is(.legend>span.legend-active,.delta-frequency,
 .marker-chip.locked,.marker-card.locked){
 background:#233a53!important;color:#e3effe!important;border-color:#4a6887!important;
}
html[data-theme="dark"] .glance-divider{background:#455c73!important}
html[data-theme="dark"] .measurement-manage{border-left-color:#344a62!important}
html[data-theme="dark"] .measurement-manage>summary{color:#e0edf9!important}
html[data-theme="dark"] .measurement-manage>summary:hover,
html[data-theme="dark"] .measurement-manage[open]>summary{background:#2c4964!important;color:#f1f8ff!important}
html[data-theme="dark"] :is(.delta-name,.delta-marker-select,.delta-delete,.delta-color,
 .marker-lock){background:#17263a!important;color:#e3effb!important;border-color:#506b87!important}
html[data-theme="dark"] :is(.delta-pair label>span,.delta-result-pair b,.manage-head span){
 color:#bed0e3!important;
}
html[data-theme="dark"] :is(.delta-readout-group,.readout-group,.delta-values){
 border-color:#354a62!important;
}
html[data-theme="dark"] :is(.marker-tools>span,.marker-toolbar>span,.interaction-mode>span,
 .viewport-label,.section-title,.panel-heading p,.prototype){
 color:#bbcee3!important;
}
/* Distinct plot/legend layer keeps engineering traces legible without glare. */
html[data-theme="dark"] .plot-card .legend{background:#182a3e!important}
html[data-theme="dark"] .plot-card .legend span{color:#cbdcf0!important}
html[data-theme="dark"] .plot-card .legend .legend-active{background:#25405b!important;color:#ecf5ff!important}

/* RFellow v2: smooth gradient and larger engineering mark. */
.topbar .brand{gap:10px;flex:none}
.topbar .brand>span{width:40px;height:40px;flex:none;border-radius:11px}
.topbar .brand .brand-wordmark{display:inline-block;font-weight:850;font-size:19px;line-height:1.2;letter-spacing:-.04em;white-space:nowrap;color:#182c45}
html[data-theme="dark"] .topbar .brand .brand-wordmark{color:#f6f9ff}
@media(max-width:540px){.topbar .brand>span{width:37px;height:37px}.topbar .brand .brand-wordmark{font-size:17px}}
@media(max-width:370px){.topbar .brand>span{width:39px;height:39px}}
@media(forced-colors:active){.topbar .brand .brand-f{background:none;-webkit-text-fill-color:currentColor;color:LinkText}}
@media(prefers-reduced-motion:reduce){.topbar .brand .brand-f{transition:none}}

/* Exact screenshot defects: scoped dark mode overrides legacy light defaults. */
html[data-theme="dark"]{background:#0c1625!important}
html[data-theme="dark"] body{min-height:100vh;background:#0c1625!important}
html[data-theme="dark"] .topbar .site-nav>a,
html[data-theme="dark"] .topbar .site-nav-more>summary{color:#d1e0f1!important}
html[data-theme="dark"] .topbar .site-nav :is(a:hover,summary:hover){color:#f3f9ff!important}
html[data-theme="dark"] .topbar .site-nav .nav-active,
html[data-theme="dark"] .topbar .site-nav-more>summary.nav-active{color:#a8e6de!important}

/* Policy cards: old #2b4059 heading and tiny gray copy disappear on navy. */
html[data-theme="dark"] .policy-page .policy-hero{border-bottom-color:#354b63}
html[data-theme="dark"] .policy-page .policy-hero .eyebrow{color:#a1d3fa!important}
html[data-theme="dark"] .policy-page .policy-grid article{
 background:#192b40!important;color:#e9f3ff!important;border:1px solid #394e68!important;box-shadow:0 4px 14px rgba(0,0,0,.09)
}
html[data-theme="dark"] .policy-page .policy-grid h2{
 color:#f1f7ff!important;font-size:clamp(14px,1.2vw,17px);line-height:1.35
}
html[data-theme="dark"] .policy-page .policy-grid p{
 color:#cbdbee!important;font-size:clamp(12px,1.05vw,14px);line-height:1.65
}
html[data-theme="dark"] .policy-page .policy-callout{
 background:#1b3443!important;color:#dbf4ee!important;border-color:#41695f!important;font-size:12px;line-height:1.6
}
html[data-theme="dark"] .policy-page .policy-callout :is(strong,span){color:inherit!important}
html[data-theme="dark"] .policy-page .policy-callout.warning{
 background:#302a26!important;color:#ffe5c7!important;border-color:#82644b!important
}
html[data-theme="dark"] .policy-page .policy-draft{color:#b9cada!important;font-size:12px}
html[data-theme="dark"] .policy-page footer{background:#0c1625!important;color:#c8d9e9!important}
html[data-theme="dark"] .policy-page footer :is(a,span){color:inherit!important}

/* Actual calculator numbers, not muted labels. */
html[data-theme="dark"] .calc-page .rf-metrics>div{
 background:#1b3045!important;border:1px solid #3a536e!important;box-shadow:inset 0 2px 0 #337985
}
html[data-theme="dark"] .calc-page .rf-metrics>div>span{color:#c4d8e9!important;opacity:1!important}
html[data-theme="dark"] .calc-page .rf-metrics>div>strong{
 color:#f3f9ff!important;font-size:clamp(17px,2vw,23px);font-weight:750;text-shadow:none;opacity:1!important
}

/* S11/S21 MathML glyphs: original blue-on-blue inherited from reference.css. */
html[data-theme="dark"] .ref-page .ref-wave-ratio math,
html[data-theme="dark"] .ref-page .ref-wave-ratio math :is(mi,mn,mo,mtext,msub,mfrac,mrow){
 color:#eff8ff!important;opacity:1!important
}
html[data-theme="dark"] .ref-page .ref-wave-ratio>span{color:#c7d9ed!important;opacity:1!important}
html[data-theme="dark"] .ref-page :is(.ref-wave-ratios,.ref-equation,.ref-matrix){
 background:#192c42!important;border-color:#3a536e!important;color:#eaf4ff!important
}
html[data-theme="dark"] .ref-page .ref-derivation>.rf-math-line,
html[data-theme="dark"] .ref-page .ref-wave-track{background:#13283e!important;border-color:#3e5670!important;color:#eaf4ff!important}
html[data-theme="dark"] .calc-page :is(.calc-number-result,.calc-result-explainer){
 background:#1b3045!important;color:#daeafa!important;border-color:#3a536e!important
}

/* Real BuilderGuard #651/#653 screenshots: technical notes and footer must
   remain readable, even when the cards' main numbers are bright. */
html[data-theme="dark"] .calc-page .rf-safety-note,
html[data-theme="dark"] .calc-page .rf-safety-note :is(b,strong){
 color:#cadbeb!important;opacity:1!important
}
html[data-theme="dark"] .calc-page .rf-safety-note{font-size:13px;line-height:1.68}
html[data-theme="dark"] .calc-page .rf-safety-note :is(b,strong){color:#eff6ff!important}
html[data-theme="dark"] .calc-page .calc-footer{
 color:#bbd0e5!important;border-top-color:#40546c!important
}
html[data-theme="dark"] .calc-page .calc-footer a{
 color:#acd8ff!important;opacity:1!important
}
html[data-theme="dark"] .calc-page :is(.calc-eyebrow,.calc-card .calc-eyebrow){
 color:#a7d2ef!important;opacity:1!important
}

/* Engagement pages and sharing: dedicated surfaces, never inverted light colors. */
.rf-share-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 11px;border-radius:99px;background:#e7f2fc;border:1px solid #bbd0e6;color:#164b78;font:700 12px system-ui;cursor:pointer}
.rf-share-button:hover{background:#d5eafb}.rf-share-button:focus-visible,.rf-action:focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}
.rf-share-status{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
html[data-theme="dark"] .rf-share-button{background:#203951;border-color:#496888;color:#e5f3ff}
html[data-theme="dark"] .rf-share-button:hover{background:#2b4b68}
.rf-community-strip{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1150px;margin:26px auto;padding:26px;border-radius:16px;background:#eaf3fa;border:1px solid #cbdaec}
.rf-community-strip h2{margin:6px 0;font-size:clamp(20px,2vw,30px)}.rf-community-strip p{line-height:1.6;max-width:65ch}
.rf-community-actions{display:flex;flex-wrap:wrap;gap:10px}.rf-community-actions a,.rf-action{display:inline-block;text-decoration:none;border:0;border-radius:10px;background:#276aa5;color:#fff;padding:11px 16px;font-size:14px;font-weight:750;min-height:42px;box-sizing:border-box;cursor:pointer}
.rf-community-actions a:nth-child(2){background:#d4e6f4;color:#1a517a}
html[data-theme="dark"] .rf-community-strip{background:#192d43;border-color:#3a5671;color:#ebf5ff}
html[data-theme="dark"] .rf-community-strip p{color:#c9ddee}
html[data-theme="dark"] .rf-community-actions a:nth-child(2){background:#28526c;color:#edf6ff}
.rf-contact-page,.rf-directory-page{min-height:100vh;background:#f3f7fb;color:#182e45}
.rf-content-shell{max-width:1110px;margin:auto;padding:46px 22px 70px}.rf-intro{max-width:780px;margin-bottom:28px}.rf-intro h1{font-size:clamp(30px,3vw,45px);line-height:1.13;margin:11px 0}.rf-intro p{line-height:1.7;font-size:16px;color:#415c72}
.rf-kicker{color:#296c98;letter-spacing:.13em;font-weight:850;font-size:11px}
.rf-three-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.rf-two-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rf-card{background:#fff;border:1px solid #d2e0ee;border-radius:16px;padding:22px;min-width:0}.rf-card h2{font-size:20px;margin:10px 0}.rf-card p{line-height:1.65;color:#496177}
.rf-card-glyph{font-size:24px;color:#087c76;background:#e7f6f2;border-radius:10px;display:inline-flex;padding:7px 12px}
.rf-directory-section{margin-top:18px}.rf-empty{background:#e7f0f8;border-radius:11px;padding:18px}.rf-fineprint{font-size:12px;line-height:1.6}
.rf-listing-card{background:#f4f8fc;border:1px solid #c9ddeb;border-radius:12px;padding:16px}
.rf-listing-card a{color:#20629b;font-weight:750}
.rf-sponsored{font-size:11px;border-radius:99px;display:inline-block;background:#fff0da;color:#804d17;padding:5px 9px;font-weight:800}
.rf-contact-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(230px,.8fr);gap:18px;align-items:start}
.rf-feedback-form{display:grid;gap:9px}.rf-feedback-form label{font-size:13px;font-weight:750;margin-top:5px}
.rf-feedback-form :is(input,select,textarea){min-height:44px;width:100%;box-sizing:border-box;padding:10px;border:1px solid #b8ccdc;border-radius:9px;background:#fbfdff;color:#173047;font:inherit}
.rf-feedback-form textarea{min-height:150px;resize:vertical}.rf-feedback-form button:disabled{opacity:.7;cursor:not-allowed}
.rf-honeypot{position:absolute;left:-200vw;height:0;opacity:0;pointer-events:none;overflow:hidden}
.rf-form-status{min-height:22px;color:#2c6585;font-weight:700;line-height:1.6}.rf-form-status[data-kind="error"]{color:#a63f3c}.rf-form-status[data-kind="success"]{color:#146d4c}
html[data-theme="dark"] :is(.rf-contact-page,.rf-directory-page){background:#0c1625;color:#eef6ff}
html[data-theme="dark"] .rf-card{background:#192b40;border-color:#3b5571;color:#eef6ff}
html[data-theme="dark"] .rf-card p,html[data-theme="dark"] .rf-intro p{color:#cbdced}
html[data-theme="dark"] .rf-kicker{color:#9dd8f8}
html[data-theme="dark"] .rf-card-glyph{background:#224953;color:#9de4d5}
html[data-theme="dark"] .rf-empty,html[data-theme="dark"] .rf-listing-card{background:#20374e;color:#d8eafa;border-color:#405b76}
html[data-theme="dark"] .rf-listing-card a{color:#b4deff}
html[data-theme="dark"] .rf-feedback-form :is(input,select,textarea){background:#112238;color:#edf5ff;border-color:#4c6884}
html[data-theme="dark"] .rf-form-status{color:#b5dff8}
html[data-theme="dark"] .rf-form-status[data-kind="error"]{color:#ffb6ae}
html[data-theme="dark"] .rf-form-status[data-kind="success"]{color:#a0ecc9}
@media(max-width:820px){.rf-community-strip{flex-direction:column;align-items:start}.rf-three-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-contact-grid{grid-template-columns:1fr}}
@media(max-width:540px){.rf-content-shell{padding:29px 13px 50px}.rf-three-grid,.rf-two-grid{grid-template-columns:1fr}.rf-share-button{min-height:35px}.rf-community-strip{padding:18px}}
@media(max-width:319px){.rf-share-word{display:none}.rf-content-shell{padding-inline:8px}}

/* RFellow original F — connected R/F, restrained satin and motion.
 * Original owner image unchanged. Neutral font weight/tracking preserved.
 */
.topbar .brand{display:inline-flex;position:relative;flex:0 0 auto;align-items:center;justify-content:flex-start;width:auto;height:43px;min-width:0;gap:0;border-radius:8px;isolation:isolate}
.topbar .brand::before,.topbar .brand::after{content:none;display:none}
.topbar .brand>span{display:none}
.topbar .brand>.brand-wordmark{
 display:inline-flex;align-items:center;white-space:nowrap;
 color:#182c45;font:750 30px/1.05 system-ui,-apple-system,"Segoe UI",sans-serif;
 letter-spacing:-.062em;font-kerning:normal;
 animation:rfellow-satin-idle 11s ease-in-out infinite;
 transition:filter 760ms cubic-bezier(.22,.62,.25,1);
}
/* Satin is applied to the neutral text only, never to the original blue F. */
.topbar .brand .brand-r,.topbar .brand .brand-tail{
 display:inline-block;color:#182c45;
 background:linear-gradient(112deg,#14283e 0%,#1c344e 31%,#28435e 47%,#1b344f 69%,#152a42 100%);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
html[data-theme="dark"] .topbar .brand .brand-r,
html[data-theme="dark"] .topbar .brand .brand-tail{
 color:#f6f9ff;
 background:linear-gradient(112deg,#eaf1fc 0%,#f5f9ff 29%,#fff 47%,#e6effb 71%,#f2f7ff 100%);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
/* Negative tracking can shorten the last glyph background box. Keep W ink visible. */
.topbar .brand .brand-tail{padding-inline-end:.12em}
.topbar .brand .brand-f,
html[data-theme="dark"] .topbar .brand .brand-f{
 display:inline-block;flex:0 0 1.32em;width:1.32em;height:.88em;
 margin-left:-.305em;margin-right:-.355em;
 background-image:url('./assets/rfellow/F-owner-original.png');
 background-size:100% 100%;background-position:center;background-repeat:no-repeat;
 background-color:transparent;background-clip:border-box;-webkit-background-clip:border-box;
 -webkit-text-fill-color:transparent;color:transparent;border:0;box-shadow:none;
 transform-origin:50% 50%;transform:translateY(.008em) scale(1);
 transition:transform 760ms cubic-bezier(.22,.62,.25,1);
}
@keyframes rfellow-satin-idle{
 0%,79%,100%{filter:brightness(1)}
 87%{filter:brightness(1.035)}
 94%{filter:brightness(1)}
}
.topbar .brand:is(:hover,:focus-visible) .brand-wordmark{animation:none;filter:brightness(1.065)}
.topbar .brand:is(:hover,:focus-visible) .brand-f{transform:translateY(.008em) scale(1.012)}
.topbar .brand:focus-visible{outline:3px solid var(--theme-focus);outline-offset:4px}
@media(max-width:540px){.topbar .brand{height:39px}.topbar .brand>.brand-wordmark{font-size:27px}}
@media(max-width:370px){.topbar .brand{height:36px}.topbar .brand>.brand-wordmark{font-size:25px}}
@media(prefers-reduced-motion:reduce){
 .topbar .brand>.brand-wordmark{animation:none!important;transition:none!important;filter:none!important}
 .topbar .brand .brand-f{transition:none!important}
 .topbar .brand:is(:hover,:focus-visible) .brand-f{transform:translateY(.008em) scale(1)}
}
@media(forced-colors:active){
 .topbar .brand{height:auto;width:auto}
 .topbar .brand>.brand-wordmark{animation:none!important;filter:none!important}
 .topbar .brand .brand-r,.topbar .brand .brand-tail{background:none!important;-webkit-text-fill-color:LinkText!important;color:LinkText!important}
 .topbar .brand .brand-f{flex:0 1 auto;width:auto;height:auto;margin:0;background:none!important;-webkit-text-fill-color:LinkText!important;color:LinkText!important;transform:none!important}
}

/* RFellow ambient surface finish: backgrounds only, never plot data. */
html[data-theme="light"] body:not(.rf-landing){
 background:radial-gradient(ellipse 60% 420px at 75% 150px,rgba(40,119,166,.045),transparent 76%),linear-gradient(180deg,#f0f4f8,#eaf0f6);
 color:#172b43;
}
html[data-theme="light"] :is(.calc-page,.ref-page,.policy-page,.guide-page-v2){background-color:#edf2f7}
html[data-theme="light"] .topbar{background:rgba(248,250,253,.97);border-bottom-color:#d7e2eb}
html[data-theme="light"] :is(.workspace,.calc-card,.calc-reference,.ref-topic,.ref-aside,.policy-grid article,.policy-callout){background-color:#f9fbfd;border-color:#d6e1eb}
html[data-theme="light"] body:not(.rf-landing) .main-panel{background-image:radial-gradient(ellipse 64% 45% at 72% 13%,rgba(49,132,178,.055),transparent 76%);background-repeat:no-repeat}
html[data-theme="dark"] body:not(.rf-landing) .main-panel{background-image:radial-gradient(ellipse 65% 48% at 72% 14%,rgba(67,155,225,.12),rgba(30,97,153,.04) 55%,transparent 79%);background-repeat:no-repeat}
html[data-theme="dark"] body:not(.rf-landing) .plot-shell{box-shadow:0 0 0 1px rgba(123,197,240,.09),0 16px 52px rgba(32,115,187,.14)}
html[data-theme="dark"] .calc-page .calc-main,
html[data-theme="dark"] .ref-page .ref-main{background-image:radial-gradient(ellipse 62% 380px at 70% 9%,rgba(56,140,208,.085),transparent 78%);background-repeat:no-repeat}
@media(prefers-contrast:more){
 html[data-theme="light"] body:not(.rf-landing){background:#f0f4f8}
 html[data-theme="dark"] body:not(.rf-landing) :is(.main-panel,.calc-main,.ref-main){background-image:none}
 html[data-theme="dark"] body:not(.rf-landing) .plot-shell{box-shadow:none}
}

/* RFellow ambient V3 — soft light at page scale, no rectangular panel glow.
 * Owner review 2026-10-29: V2 Hero and main-panel gradients visibly clipped to
 * their boxes; dark plot halos were too bright. Keep all chart SVGs untouched.
 * Neither layout, transparent F asset, nor hover/idle animation is changed. */
html[data-theme="light"] body:not(.rf-landing){
 background:
  radial-gradient(ellipse 88% 820px at 76% 145px,
    rgba(78,159,186,.105) 0%,rgba(87,163,191,.045) 43%,transparent 83%),
  radial-gradient(ellipse 77% 720px at 10% 760px,
    rgba(102,156,202,.065) 0%,transparent 82%),
  linear-gradient(165deg,#eff4f9 0%,#f1f6fa 47%,#edf3f8 100%);
 background-repeat:no-repeat;
}
html[data-theme="dark"] body:not(.rf-landing){
 background:
  radial-gradient(ellipse 82% 790px at 68% 390px,
    rgba(51,118,177,.055) 0%,transparent 85%),
  #0c1625 !important;
 background-repeat:no-repeat;
}
/* Transparent hero — atmospheric color now comes from the page canvas. */
html[data-theme="light"] body:not(.rf-landing) .hero{
 background:transparent;
 border-radius:0;
}
html[data-theme="light"] body:not(.rf-landing) .hero .eyebrow{
 color:#176b8e;
}
/* No separate clipped rectangle behind the Touchstone viewer or reference. */
html[data-theme="light"] body:not(.rf-landing) .main-panel,
html[data-theme="dark"] body:not(.rf-landing) .main-panel,
html[data-theme="light"] body:not(.rf-landing) .calc-main,
html[data-theme="dark"] body:not(.rf-landing) .calc-main,
html[data-theme="light"] body:not(.rf-landing) .ref-main,
html[data-theme="dark"] body:not(.rf-landing) .ref-main,
html[data-theme="light"] .calc-page .calc-intro,
html[data-theme="dark"] .calc-page .calc-intro,
html[data-theme="light"] .ref-page .ref-hero,
html[data-theme="dark"] .ref-page .ref-hero{
 background-image:none;
}
/* A quiet, broad pool inside the surrounding WORKSPACE surface only.
   It fades before card edges; no overlay is applied to chart pixels or axes. */
html[data-theme="light"] body:not(.rf-landing) .workspace{
 border-top:1px solid #b3d4e1;
 background-image:radial-gradient(ellipse 86% 74% at 82% 7%,
   rgba(82,155,183,.045),transparent 88%);
 box-shadow:0 16px 46px rgba(30,77,115,.085),0 0 45px rgba(86,154,191,.035);
}
html[data-theme="dark"] body:not(.rf-landing) .workspace{
 background-image:radial-gradient(ellipse 88% 76% at 78% 8%,
   rgba(85,152,197,.05),transparent 88%);
 box-shadow:0 16px 46px rgba(0,11,27,.30),0 0 46px rgba(37,114,177,.065);
}
/* Only a restrained, neutral border/shadow; never a neon frame. */
html[data-theme="light"] body:not(.rf-landing) .plot-shell{
 border-color:#c3d8e4;
 box-shadow:0 5px 18px rgba(43,102,148,.075);
}
html[data-theme="dark"] body:not(.rf-landing) .plot-shell{
 border-color:#3b5870;
 box-shadow:0 6px 20px rgba(0,18,38,.20),0 0 0 1px rgba(92,153,193,.045);
}
@media(prefers-contrast:more){
 html[data-theme="light"] body:not(.rf-landing){background:#eff4f9}
 html[data-theme="dark"] body:not(.rf-landing){background:#0c1625!important}
 html[data-theme="light"] body:not(.rf-landing) .workspace,
 html[data-theme="dark"] body:not(.rf-landing) .workspace{
  background-image:none;box-shadow:none
 }
 html[data-theme="light"] body:not(.rf-landing) .plot-shell,
 html[data-theme="dark"] body:not(.rf-landing) .plot-shell{box-shadow:none}
}
@media(forced-colors:active){
 html[data-theme="light"] body:not(.rf-landing),
 html[data-theme="dark"] body:not(.rf-landing){background:Canvas!important}
 html[data-theme="light"] body:not(.rf-landing) .workspace,
 html[data-theme="dark"] body:not(.rf-landing) .workspace{background-image:none;box-shadow:none}
 html[data-theme="light"] body:not(.rf-landing) .plot-shell,
 html[data-theme="dark"] body:not(.rf-landing) .plot-shell{box-shadow:none}
}

/* RFellow ambient V4 — distributed dark glow and safe Share popover */
/* Midpoint between V2 (hot spots) and V3 (imperceptible):
   two large, low-alpha sources on continuous background + an understated
   work-surface wash. Never touch plot paths, axes, or measurement canvases. */
html[data-theme="dark"] body:not(.rf-landing){
 background:
  radial-gradient(ellipse 84% 940px at 76% 340px,
   rgba(58,133,193,.105) 0%,rgba(39,118,170,.045) 47%,transparent 85%),
  radial-gradient(ellipse 78% 850px at 17% 1160px,
   rgba(36,127,155,.072) 0%,transparent 84%),
  #0c1625 !important;
 background-repeat:no-repeat;
}
html[data-theme="dark"] body:not(.rf-landing) .workspace{
 background-image:
  radial-gradient(ellipse 88% 83% at 72% 15%,
   rgba(61,150,203,.105),transparent 88%),
  radial-gradient(ellipse 72% 79% at 13% 83%,
   rgba(50,123,166,.066),transparent 89%);
 box-shadow:0 18px 51px rgba(0,11,27,.32),0 0 61px rgba(42,119,182,.085);
}
/* Keep the viewer boundary almost neutral; avoid neon outlines. */
html[data-theme="dark"] body:not(.rf-landing) .plot-shell{
 border-color:#416078;
 box-shadow:0 8px 23px rgba(0,17,36,.24),0 0 0 1px rgba(86,164,195,.06);
}
/* Share popover — contained, keyboard operable, with a manual-copy fallback. */
.rf-share-panel{
 position:absolute;z-index:40;right:clamp(10px,3.5vw,54px);
 top:calc(100% + 7px);width:min(340px,calc(100vw - 24px));
 display:grid;gap:10px;padding:17px;
 color:#172b43;background:#f8fbfe;border:1px solid #bfcedc;
 border-radius:13px;box-shadow:0 22px 53px rgba(17,40,66,.23);
 font:13px/1.5 system-ui,sans-serif;
}
.rf-share-panel[hidden]{display:none!important}
.rf-share-panel strong{font-size:15px;font-weight:780;color:inherit}
.rf-share-panel p{margin:0}
.rf-share-panel>p:not(.rf-share-feedback){color:#52677d;font-size:12px}
.rf-share-link{display:block;width:100%;min-width:0;padding:10px;
 border:1px solid #b9cedd;border-radius:7px;background:#fff;
 color:#1b3956;font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.rf-share-actions{display:flex;gap:9px;align-items:center}
.rf-share-actions button{min-height:36px;border-radius:8px;cursor:pointer;
 border:1px solid #b9cedd;padding:7px 13px;font:700 12px system-ui}
.rf-share-copy{background:#2369ad;color:#fff;border-color:#2369ad!important}
.rf-share-close{background:transparent;color:#294865}
.rf-share-feedback{min-height:17px;font-size:12px;color:#275c7c}
.rf-share-panel :is(button,input):focus-visible{outline:3px solid #52a2d5;outline-offset:2px}
html[data-theme="dark"] .rf-share-panel{
 background:#172b42;color:#eef5ff;border-color:#486680;
 box-shadow:0 21px 56px rgba(0,6,20,.50);
}
html[data-theme="dark"] .rf-share-panel>p:not(.rf-share-feedback){color:#b6cbde}
html[data-theme="dark"] .rf-share-link{background:#101f32;border-color:#526d87;color:#ebf4ff}
html[data-theme="dark"] .rf-share-close{color:#e1effc;border-color:#58748b}
html[data-theme="dark"] .rf-share-feedback{color:#a8e4e2}
@media(max-width:540px){.rf-share-panel{right:12px;top:calc(100% + 5px)}}
@media(prefers-contrast:more){
 html[data-theme="dark"] body:not(.rf-landing){background:#0c1625!important}
 html[data-theme="dark"] body:not(.rf-landing) .workspace{background-image:none;box-shadow:none}
 html[data-theme="dark"] body:not(.rf-landing) .plot-shell{box-shadow:none}
}
@media(forced-colors:active){
 .rf-share-panel{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}
 .rf-share-copy,.rf-share-close{background:ButtonFace;color:ButtonText;border:1px solid ButtonText!important}
}

/* RFellow measurement workspace — one editing surface, strong Delta hierarchy. */
.topbar .site-nav>a[href="./resources.html"]{font-weight:770}
.measurement-manage-panel{width:min(590px,calc(100vw - 26px));max-width:100%;max-height:min(77vh,790px);overflow:auto;box-sizing:border-box;padding:16px;border-radius:14px}
.marker-control-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:12px 0 9px}
.marker-control-heading strong{font-size:13px;color:#23415e}
.marker-control-heading small{font-size:11px;color:#637d92;line-height:1.4}
.marker-manager-list{display:grid;gap:6px;max-height:268px;overflow-y:auto}
.marker-manager-row{display:grid;grid-template-columns:52px minmax(82px,1.1fr) minmax(84px,1fr) 30px 49px 32px;align-items:center;gap:6px;padding:7px;background:#f7fafc;border:1px solid #d9e5ee;border-radius:10px}
.marker-manager-row.is-active{border-color:#76afcf;background:#f0f8fc}
.marker-manager-row button,.marker-manager-row input{min-width:0;box-sizing:border-box;min-height:34px}
.marker-manager-row input[type="text"],.marker-manager-row input[type="number"]{width:100%;border:1px solid #c7d7e4;border-radius:7px;background:#fff;color:#1d3c55;padding:5px 7px;font-size:12px}
.marker-manager-row input[type="color"]{width:28px;height:30px;border:0;padding:2px;background:transparent}
.marker-manager-row button{border:1px solid #ccdce9;border-radius:7px;background:#fff;color:#214763;font-size:11px;font-weight:750;cursor:pointer}
.marker-manager-row .marker-manager-select{font-size:12px;border-left:3px solid var(--marker-color)}
.marker-manager-row .marker-manager-remove{color:#a33b50}
.marker-manager-empty{padding:11px;color:#60788e;font-size:12px}
.marker-manager-row :is(button,input):focus-visible,.marker-search :is(button,input,select):focus-visible{outline:3px solid #82b9da;outline-offset:1px}
.marker-search{margin-top:14px;border-top:1px solid #dae5ed;padding:8px 0 13px}
.marker-search-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.marker-search-fields label{min-width:0;display:grid;gap:5px;font-size:11px;font-weight:740;color:#486279}
.marker-search-fields input,.marker-search-fields select{box-sizing:border-box;min-width:0;width:100%;min-height:38px;border:1px solid #c3d6e4;border-radius:8px;padding:5px 8px;background:#fff;color:#25465f;font-size:12px}
.marker-search-bounds{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.marker-search-bounds[hidden]{display:none}
.marker-search-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.marker-search-buttons button{flex:1;min-width:90px;min-height:40px;border-radius:8px;border:1px solid #bad1e1;background:#ecf6fc;color:#1d5c8d;font-size:12px;font-weight:800;cursor:pointer}
.marker-search-buttons button:last-child{background:#276ba3;border-color:#276ba3;color:#fff}
.marker-search-buttons button:disabled,.marker-quick-peak:disabled{opacity:.5;cursor:not-allowed}
.marker-search-status{margin:8px 0 0;font-size:11px;line-height:1.5;color:#52718a}
.marker-delete-all{color:#a43951!important}
.delta-editor-heading{border-top:1px solid #dbe5ed;padding-top:11px}
.delta-control-card{border:1px solid #d5e4eb;border-radius:11px;box-shadow:none}
.delta-result-card{--rf-delta-accent:var(--delta-color,#447e92);border:1px solid #cbdde8;border-left:4px solid var(--rf-delta-accent);border-radius:13px;background:#f8fbfe;box-shadow:0 5px 17px rgba(24,67,95,.05);padding:13px;min-width:0}
.delta-result-head{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.delta-result-head strong{font-weight:770;color:#263f58;letter-spacing:.01em}
.delta-result-head .delta-badge{border-radius:7px;min-width:30px;height:25px;display:inline-flex;justify-content:center;align-items:center;font-size:11px;font-weight:850}
.delta-result-pair{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e1e9f1;padding:0 0 10px;margin-bottom:11px;color:#61788e;font-size:11px}
.delta-result-pair b{color:#6e9baa}
.delta-result-card .delta-frequency{display:grid;gap:3px;min-width:0;margin-bottom:10px}
.delta-result-card .delta-frequency>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#637b90}
.delta-result-card .delta-frequency>strong{font:800 clamp(16px,2vw,22px)/1.25 ui-sans-serif,system-ui,sans-serif;color:#193b57;font-variant-numeric:tabular-nums}
.delta-result-card .delta-values{background:#eef5fb;border-radius:9px;padding:8px 10px;margin:0}
.delta-result-card .delta-values strong{font-variant-numeric:tabular-nums;font-size:14px}
.delta-peek-card{border-left:3px solid var(--peek-accent,#407f94);border-radius:10px;background:#f4f9fd}
.delta-peek-card .measurement-peek-frequency{font-weight:800}
html[data-theme="dark"] :is(.marker-control-heading strong,.delta-result-head strong){color:#edf4fd}
html[data-theme="dark"] :is(.marker-control-heading small,.marker-search-status,.marker-search-fields label){color:#b5c7d8}
html[data-theme="dark"] .marker-manager-row{background:#1b3147;border-color:#385570}
html[data-theme="dark"] .marker-manager-row.is-active{background:#1d3b53;border-color:#64a9cf}
html[data-theme="dark"] .marker-manager-row :is(button,input[type="text"],input[type="number"]),html[data-theme="dark"] .marker-search-fields :is(input,select){background:#12263a;color:#e7f3ff;border-color:#45647e}
html[data-theme="dark"] .marker-manager-row .marker-manager-remove{color:#ffafbd}
html[data-theme="dark"] .marker-search-buttons button{background:#24465e;color:#dceefa;border-color:#58778e}
html[data-theme="dark"] .marker-search-buttons button:last-child{background:#376f99}
html[data-theme="dark"] .delta-result-card{background:#182e43;color:#e6f2ff;border-color:#47637c;border-left-color:var(--delta-color,#6dc6ae);box-shadow:none}
html[data-theme="dark"] .delta-result-pair{color:#c1d4e5;border-bottom-color:#39546d}
html[data-theme="dark"] .delta-result-card .delta-frequency>span{color:#a9c1d5}
html[data-theme="dark"] .delta-result-card .delta-frequency>strong{color:#edf7ff}
html[data-theme="dark"] .delta-result-card .delta-values{background:#203b54!important}
html[data-theme="dark"] .delta-peek-card{background:#1c374c;border-color:#6ab9c5}
@media(max-width:690px){.marker-manager-row{grid-template-columns:45px minmax(76px,1fr) minmax(78px,1fr) 28px 43px 28px;gap:4px;padding:6px}.marker-manager-row input[type="text"],.marker-manager-row input[type="number"]{font-size:11px;padding:4px}.measurement-manage-panel{padding:10px}}
@media(max-width:420px){.marker-search-fields{grid-template-columns:1fr}.marker-manager-list{overflow-x:auto}.marker-manager-row{min-width:380px}.topbar .site-nav{justify-content:flex-start;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.topbar .site-nav>a,.topbar .site-nav-more>summary{flex:none}}

/* RFellow UX V2 — measured, readable instrument-console layout. */
#analyzerWorkspace:focus{outline:none}
#analyzerWorkspace:focus-visible{outline:2px solid #6baad6;outline-offset:-3px}
.marker-open-functions{display:inline-flex;gap:6px;align-items:center;justify-content:center;border-color:#9ebdd3!important;background:#f0f7fc!important;color:#255c88!important;font-size:12px!important;font-weight:800!important;min-height:35px}
.marker-open-functions:hover{background:#e3f2fb!important}
.marker-open-functions span{font-size:13px;color:#6f93ad}
.measurement-manage-panel{
 position:fixed;top:76px;right:clamp(14px,3vw,48px);z-index:90;
 width:min(850px,calc(100vw - 28px));max-width:none;
 max-height:calc(100vh - 90px);overflow-y:auto;overscroll-behavior:contain;
 padding:0;background:#f9fbfe;border:1px solid #cbdde9;border-radius:18px;
 box-shadow:0 27px 85px rgba(18,43,70,.23),0 2px 12px rgba(18,43,70,.08);
 color:#1c3550;font-size:13px;line-height:1.52;
}
.measurement-console-heading{
 display:flex;align-items:center;justify-content:space-between;gap:20px;
 padding:23px 26px 20px;border-bottom:1px solid #dbe6ef;
 background:linear-gradient(112deg,#eff6fb 0%,#f9fbfe 82%);
}
.measurement-console-heading h3{font-size:24px;line-height:1.18;letter-spacing:-.035em;font-weight:830;color:#183550;margin:4px 0 6px}
.measurement-console-heading p{font-size:13px;color:#59738a;margin:0;line-height:1.5}
.measurement-console-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:850;color:#287f9f}
.measurement-console-hint{display:inline-flex;flex:0 0 auto;align-items:center;border:1px solid #d4e4ec;border-radius:99px;padding:6px 11px;font-size:11px;font-weight:700;color:#476f83;background:#fff}
.measurement-console-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.94fr);gap:18px;padding:20px 22px 18px}
.measurement-console-section{min-width:0;background:#fff;border:1px solid #e0e9f0;border-radius:14px;padding:19px 18px}
.measurement-console-section-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:17px}
.measurement-console-index{display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #c8e2ec;border-radius:9px;background:#eaf5fa;font-size:11px;font-weight:850;color:#277791;letter-spacing:.02em}
.measurement-console-section-head>div{min-width:0}
.measurement-console-section-head h4{font-size:16px;font-weight:820;line-height:1.35;letter-spacing:-.02em;color:#1c3954;margin:0}
.measurement-console-section-head p{font-size:12px;line-height:1.5;color:#71859a;margin:3px 0 0}
.measurement-console-markers{display:flex;flex-direction:column;gap:0}
.marker-manager-list{display:flex;flex-direction:column;gap:8px;max-height:380px;overflow-y:auto;min-width:0}
.marker-manager-row{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:12px 13px;min-width:0;background:#fafcff;border:1px solid #dee9f2;border-radius:11px}
.marker-manager-row.is-active{background:#f0f8fb;border-color:#7ab1c9;box-shadow:inset 0 0 0 1px rgba(50,138,165,.12)}
.marker-row-identity{display:flex;gap:11px;align-items:center;min-width:0}
.marker-manager-row .marker-manager-select{flex:0 0 auto;min-width:45px;min-height:32px;font-size:12px;font-weight:850;border:1px solid #cedee8;border-left:4px solid var(--marker-color);border-radius:7px;background:white;color:#264763}
.marker-row-position{font-size:13px;font-weight:780;color:#26455e;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.marker-row-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,.8fr);gap:8px;min-width:0}
.marker-manager-row .marker-row-editor input[type="text"],.marker-manager-row .marker-row-editor input[type="number"]{height:39px;width:100%;min-width:0;border-radius:8px;border:1px solid #d5e2ea;padding:7px 10px;font-size:12px;font-weight:600;box-sizing:border-box;background:#fff;color:#24445c}
.marker-row-frequency{position:relative;min-width:0}
.marker-manager-row .marker-row-frequency input{padding-right:43px!important;font-variant-numeric:tabular-nums}
.marker-row-unit{position:absolute;right:10px;top:12px;pointer-events:none;color:#8597a7;font-size:10px;font-weight:730}
.marker-row-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.marker-manager-row input[type="color"]{width:29px;height:29px;min-height:29px;flex:0 0 29px;border:0;background:transparent;padding:2px;cursor:pointer}
.marker-manager-row .marker-row-lock,.marker-manager-row .marker-manager-remove{height:32px;min-height:32px;border:1px solid #d5e2ea;border-radius:7px;background:#fff;color:#47657b;font-size:11px;font-weight:760}
.marker-manager-row .marker-row-lock{padding:0 11px}
.marker-manager-row .marker-manager-remove{width:34px;flex:0 0 34px;color:#ab4c59;font-size:18px;font-weight:500}
.marker-manager-row .marker-row-lock[aria-pressed="true"]{color:#1c7191;border-color:#99c2d6;background:#edf8fb}
.marker-shortcut-control{display:flex;gap:11px;align-items:center;padding:14px 2px 12px;margin-top:10px;border-top:1px solid #e4ecf3;cursor:pointer}
.marker-shortcut-control>input{flex:0 0 auto;accent-color:#27859b;width:17px;height:17px}
.marker-shortcut-control span{display:flex;flex-direction:column;gap:2px}
.marker-shortcut-control strong{font-size:12px;color:#39576e}
.marker-shortcut-control small{font-size:11px;color:#7b8d9e;line-height:1.4}
.marker-destructive-actions{margin-top:auto;padding-top:11px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #e5edf3}
.marker-destructive-actions button{min-height:34px;padding:6px 11px;border:1px solid #d2e1ea;border-radius:8px;background:#fff;color:#496780;font-weight:730;font-size:11px}
.marker-destructive-actions .marker-delete-all{border-color:#e5cfd4;color:#ad4152!important}
.measurement-console-functions .marker-search{border:none;margin:0;padding:0}
.marker-search-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}
.marker-search-fields>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#47657e;font-size:12px;font-weight:760}
.marker-search-fields select,.marker-search-fields input{min-width:0;width:100%;min-height:43px;padding:9px 11px;border-radius:9px;border:1px solid #cddfea;background:#fcfeff;color:#203f58;font-size:13px;font-weight:650}
.marker-search-fields select:disabled{opacity:.5}
.marker-search-bounds{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;border-radius:10px;padding:12px;background:#f0f6fa;border:1px solid #e0edf4}
.marker-search-bounds[hidden],.marker-search-fields>label[hidden]{display:none!important}
.marker-search-bounds label{display:grid;gap:6px;color:#526c81;font-size:12px;font-weight:740}
.marker-peak-excursion{grid-column:1/-1}
.marker-function-run{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:45px;margin:19px 0 10px;padding:9px 16px;background:#236ca3;color:#fff;border:1px solid #236ca3;border-radius:9px;font-size:13px;font-weight:820;cursor:pointer;box-shadow:0 4px 12px rgba(23,103,160,.11)}
.marker-function-run:hover:not(:disabled){background:#175a8b}
.marker-function-run:disabled{opacity:.48;cursor:not-allowed}
.marker-search-status{color:#637b90;font-size:12px;min-height:32px;line-height:1.55;margin:10px 0 0}
.measurement-console-deltas{margin:0 22px 22px}
.measurement-console-deltas>.measurement-console-section-head{align-items:center}
.measurement-console-deltas>.measurement-console-section-head .delta-add{margin-left:auto;min-height:36px;padding:7px 13px;font-size:12px;font-weight:820}
.measurement-console-deltas .delta-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
.measurement-console-deltas .delta-control-card{background:#fbfdff;border:1px solid #d8e5ed;border-left:3px solid var(--delta-color,#438c99);padding:15px;border-radius:11px}
.measurement-console-deltas .delta-control-head{margin-bottom:11px}
.measurement-console-deltas .delta-control-head strong{font-size:13px;color:#21435a}
.measurement-console-deltas .delta-control-status{font-size:12px;line-height:1.5}
.measurement-console-deltas .delta-pair{gap:8px}
.measurement-console-deltas .delta-pair select{min-height:36px;border-radius:8px}
.measurement-console-deltas .delta-name{min-height:35px;border-radius:8px}
.measurement-console-panel :is(button,input,select):focus-visible,.measurement-manage-panel :is(button,input,select):focus-visible{outline:3px solid #63a6d2;outline-offset:2px}
html[data-theme="dark"] .measurement-manage-panel{background:#122236!important;color:#eaf5ff;border:1px solid #39546f;box-shadow:0 30px 95px rgba(0,6,20,.6)}
html[data-theme="dark"] .measurement-console-heading{background:linear-gradient(112deg,#18314a,#15283b);border-bottom-color:#38536c}
html[data-theme="dark"] .measurement-console-heading h3,html[data-theme="dark"] .measurement-console-section-head h4{color:#f0f8ff}
html[data-theme="dark"] .measurement-console-heading p,html[data-theme="dark"] .measurement-console-section-head p{color:#bfd1df}
html[data-theme="dark"] .measurement-console-hint{background:#1b354b;border-color:#456077;color:#c4dce9}
html[data-theme="dark"] .measurement-console-section{background:#192d42;border-color:#3a526c}
html[data-theme="dark"] .measurement-console-index{background:#244961;border-color:#3e7186;color:#a6e4e6}
html[data-theme="dark"] .marker-manager-row{background:#1f374d;border-color:#3a5972}
html[data-theme="dark"] .marker-manager-row.is-active{background:#224258;border-color:#63a4b5}
html[data-theme="dark"] .marker-row-position,html[data-theme="dark"] .marker-shortcut-control strong{color:#d9edf9}
html[data-theme="dark"] .marker-manager-row :is(.marker-manager-select,.marker-row-editor input[type="text"],.marker-row-editor input[type="number"],.marker-row-lock,.marker-manager-remove),html[data-theme="dark"] .marker-search-fields :is(select,input){background:#12273b;color:#ebf5ff;border-color:#49657d}
html[data-theme="dark"] .marker-shortcut-control,html[data-theme="dark"] .marker-destructive-actions{border-color:#3d576e}
html[data-theme="dark"] .marker-shortcut-control small,html[data-theme="dark"] .marker-search-status{color:#b6cadb}
html[data-theme="dark"] .marker-search-fields>label,html[data-theme="dark"] .marker-search-bounds label{color:#d2e1ec}
html[data-theme="dark"] .marker-search-bounds{background:#203950;border-color:#39556f}
html[data-theme="dark"] .marker-destructive-actions button{background:#213a50;color:#d9ebf7;border-color:#47637b}
html[data-theme="dark"] .marker-destructive-actions .marker-delete-all{color:#ffd1d8!important;border-color:#805565}
html[data-theme="dark"] .measurement-console-deltas .delta-control-card{background:#1e384e;border-color:#46627b;border-left-color:var(--delta-color)}
html[data-theme="dark"] .measurement-console-deltas .delta-control-head strong{color:#edf7ff}
html[data-theme="dark"] .marker-open-functions{background:#1d3d53!important;border-color:#4d839d!important;color:#e2f5ff!important}
@media(max-width:820px){.measurement-console-grid{grid-template-columns:1fr}.marker-manager-list{max-height:300px}.measurement-console-heading{padding:18px}.measurement-console-deltas{margin:0 16px 17px}}
@media(max-width:530px){.measurement-manage-panel{top:66px;right:8px;width:calc(100vw - 16px);max-height:calc(100vh - 76px);border-radius:13px}.measurement-console-heading{padding:16px}.measurement-console-heading h3{font-size:21px}.measurement-console-hint{display:none}.measurement-console-grid{padding:10px;gap:10px}.measurement-console-section{padding:14px 12px}.measurement-console-deltas{margin:0 10px 10px}.marker-row-editor{grid-template-columns:minmax(0,1fr) minmax(88px,.8fr)}.marker-manager-row{padding:11px}.marker-search-fields{gap:10px}.marker-open-functions{font-size:12px!important}}
@media(max-width:350px){.marker-row-editor{grid-template-columns:1fr}.marker-row-actions{flex-wrap:wrap}.measurement-console-section-head h4{font-size:15px}}
@media(prefers-reduced-motion:reduce){.measurement-manage-panel,.marker-function-run{transition:none!important;animation:none!important}}
@media(forced-colors:active){.measurement-manage-panel,.measurement-console-section,.marker-manager-row{forced-color-adjust:auto;border:1px solid CanvasText}.marker-function-run{background:Highlight;color:HighlightText}}

/* Compact instrument-style Delta results; values are from active-DUT samples. */
.delta-control-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 10px}
.delta-control-metric{min-width:0;padding:11px 12px;border-radius:9px;background:#edf5fa;border:1px solid #dce9f0}
.delta-control-metric span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#57758c;font-weight:770}
.delta-control-metric strong{display:block;margin-top:5px;font-size:18px;font-weight:840;line-height:1.3;color:#173c58;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme="dark"] .delta-control-metric{background:#25435b;border-color:#466781}
html[data-theme="dark"] .delta-control-metric span{color:#c4d5e2}
html[data-theme="dark"] .delta-control-metric strong{color:#f0f9ff}
@media(max-width:390px){.delta-control-metrics{grid-template-columns:1fr}.delta-control-metric strong{font-size:16px}}

/* RFellow V3 — compact measurement disclosure and accessible tabbed console. */
.measurement-shelf{min-height:44px}
.measurement-shelf>.measurement-glance{flex:1;min-width:0}
.measurement-manage{flex:0 0 auto;border-left:0!important}
.measurement-manage>summary{
  display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;height:100%;
  padding:8px 16px;background:#e7f3fb!important;color:#1d5680!important;
  border-left:1px solid #c4dbe9;border-radius:0;font-size:12px;font-weight:820;cursor:pointer
}
.measurement-manage>summary:hover,.measurement-manage[open]>summary{background:#d7edf9!important;color:#144569!important}
.manage-summary-icon{font-size:19px;font-weight:850;line-height:1}
.manage-summary-chevron{font-size:13px}
.measurement-manage[open] .manage-summary-chevron{transform:rotate(180deg)}
.measurement-manage-panel{
  position:fixed!important;top:72px;right:16px;z-index:120;
  width:min(460px,calc(100vw - 26px))!important;max-width:none!important;
  max-height:calc(100dvh - 88px)!important;overflow-y:auto!important;
  padding:0!important;border-radius:15px!important;background:#f7fafc!important;
  border:1px solid #cadde9!important;box-shadow:0 20px 72px rgba(16,38,63,.24)!important
}
.measurement-console-heading{padding:15px 17px 14px!important}
.measurement-console-heading h3{font-size:19px!important;letter-spacing:-.035em!important;margin:3px 0!important}
.measurement-console-heading p{font-size:12px!important;line-height:1.4!important}
.measurement-console-eyebrow{font-size:9px!important}
.measurement-console-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.measurement-console-actions>a,.measurement-console-actions>button{
  display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;
  padding:0;border:1px solid #c7dce9;border-radius:9px;background:#fff;
  color:#365f80;text-decoration:none;font-size:17px;font-weight:820;cursor:pointer
}
.measurement-console-actions>a:hover,.measurement-console-actions>button:hover{border-color:#84b2cb;background:#e8f5fb}
.measurement-console-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:11px 13px 0}
.measurement-console-tabs button{height:39px;min-width:0;border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:transparent;color:#58748b;font-size:13px;font-weight:770;cursor:pointer}
.measurement-console-tabs button[aria-selected="true"]{border-bottom-color:#2580a2;background:#e5f2f8;color:#1a567c}
.measurement-console-grid{display:block!important;padding:12px 13px 13px!important}
.measurement-console-section{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;min-width:0}
.measurement-console-section[data-measure-pane][hidden]{display:none!important}
.measurement-console-section-head{margin:0 0 10px!important;gap:8px!important}
.measurement-console-index{display:none!important}
.measurement-console-section-head h4{font-size:14px!important}
.measurement-console-section-head p{font-size:11px!important;margin-top:1px!important}
.measurement-console-deltas{margin:0!important}
.measurement-console-deltas .delta-tools{grid-template-columns:1fr!important}
.marker-manager-list{display:grid!important;gap:5px!important;max-height:clamp(165px,42dvh,360px)!important;overflow-y:auto!important;padding:2px}
.marker-manager-row{
 display:grid!important;grid-template-columns:46px minmax(0,1fr) auto auto!important;align-items:center!important;
 gap:8px!important;min-width:0!important;padding:7px 9px!important;border-radius:9px!important
}
.marker-manager-row.is-active{border-color:#66a5c4!important}
.marker-manager-row .marker-manager-select{min-height:31px!important;min-width:42px!important}
.marker-compact-label{display:flex;flex-direction:column;min-width:0;gap:1px}
.marker-compact-label strong{color:#294963;font-size:12px;line-height:1.35;font-weight:830;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.marker-compact-label small{color:#768da0;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.marker-compact-status{font-size:10px;color:#386e8e;font-weight:790}
.marker-row-expand{border:1px solid #d5e3ec;background:#fff;color:#53718b;border-radius:7px;min-height:30px;padding:3px 7px;font-size:10px;font-weight:770;cursor:pointer}
.marker-row-editor{display:grid!important;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;padding:10px 1px 2px;border-top:1px solid #d8e6ef}
.marker-row-editor>label{font-size:10px;color:#648096;font-weight:790;display:grid;gap:5px}
.marker-row-editor>label input{min-width:0;width:100%;height:35px;border:1px solid #cadeea;background:#fff;color:#24445e;border-radius:7px;padding:5px 8px;font-size:12px}
.marker-row-actions{grid-column:1/-1;justify-content:flex-start!important}
.marker-manager-row .marker-manager-remove{width:auto!important;font-size:11px!important;font-weight:800!important;padding:0 10px!important}
.marker-shortcut-control{padding:11px 2px!important;margin-top:9px!important}
.marker-shortcut-control strong{font-size:11px!important}
.marker-shortcut-control small{font-size:10px!important}
.marker-destructive-actions{padding-top:10px!important}
.measurement-console-functions .marker-search-fields{gap:12px 9px}
.measurement-console-functions .marker-search-fields select,.measurement-console-functions .marker-search-fields input{min-height:39px!important}
.measurement-console-functions .marker-function-run{min-height:42px;margin-top:16px}
.measurement-console-deltas .delta-control-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.measurement-peek{align-items:center!important;gap:10px!important;padding:8px 12px!important;min-height:61px!important}
.measurement-peek-heading{gap:0!important;padding:0!important}
.measurement-peek-heading strong{font-size:10px!important}
.measurement-peek-heading span{font-size:10px!important}
.measurement-peek-list{flex:1;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;
  gap:7px!important;max-width:none!important;max-height:none!important;overflow:hidden!important}
.measurement-peek-card{max-width:min(250px,38vw);flex:0 1 auto;overflow:hidden;white-space:nowrap}
.measurement-peek-card .measurement-peek-frequency{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.measurement-peek-more{flex:0 0 auto;min-height:33px;padding:6px 10px;border:1px solid #cddce8;border-radius:8px;background:#fff;color:#315d7d;font-size:11px;font-weight:790;cursor:pointer}
.measurement-peek-more:hover{background:#e7f3fa;border-color:#8db7ce}
html[data-theme="dark"] .measurement-manage>summary{background:#234258!important;color:#ebf6ff!important;border-left-color:#456681}
html[data-theme="dark"] .measurement-manage>summary:hover,html[data-theme="dark"] .measurement-manage[open]>summary{background:#2f5d77!important;color:#fff!important}
html[data-theme="dark"] .measurement-manage-panel{background:#14273b!important;border-color:#486782!important}
html[data-theme="dark"] .measurement-console-heading{background:#1c344a!important;border-bottom-color:#405d76}
html[data-theme="dark"] .measurement-console-actions>a,html[data-theme="dark"] .measurement-console-actions>button{background:#29435b;color:#eff8ff;border-color:#57758e}
html[data-theme="dark"] .measurement-console-tabs button{color:#c0d4e4}
html[data-theme="dark"] .measurement-console-tabs button[aria-selected="true"]{color:#ecf8ff;background:#244963;border-bottom-color:#7ac5da}
html[data-theme="dark"] .marker-compact-label strong{color:#f1f8ff}
html[data-theme="dark"] .marker-compact-label small{color:#b7cbdc}
html[data-theme="dark"] .marker-compact-status{color:#a4deed}
html[data-theme="dark"] .marker-row-expand{background:#263f57;border-color:#56728b;color:#d9eefb}
html[data-theme="dark"] .marker-row-editor{border-color:#45627a}
html[data-theme="dark"] .marker-row-editor>label{color:#c3d8e8}
html[data-theme="dark"] .marker-row-editor>label input{background:#172e44;color:#edf7ff;border-color:#56728b}
html[data-theme="dark"] .measurement-peek{background:#1a3046!important;border-bottom-color:#405c74!important}
html[data-theme="dark"] .measurement-peek-heading strong{color:#eaf5ff!important}
html[data-theme="dark"] .measurement-peek-heading span{color:#bdd2e3!important}
html[data-theme="dark"] .measurement-peek-card{background:#233f56!important;border-color:#527189!important;box-shadow:none!important}
html[data-theme="dark"] .measurement-peek-card :is(.measurement-peek-code,.measurement-peek-frequency,.measurement-peek-value){color:#eaf6ff!important;opacity:1!important}
html[data-theme="dark"] .measurement-peek-more{background:#27465e;border-color:#52758c;color:#e4f5ff}
html[data-theme="dark"] .measurement-glance{background:#1a3046;color:#e3effa}
html[data-theme="dark"] .measurement-glance :is(.marker-action-status,.delta-glance,.glance-label){color:#c8dce9!important}
@media(max-width:760px){
 .measurement-peek{gap:7px!important;flex-wrap:nowrap!important}
 .measurement-peek-heading{flex:0 0 auto}
 .measurement-peek-list{min-width:0}
 .measurement-peek-card{max-width:38vw}
}
@media(max-width:530px){
 .measurement-manage-panel{top:12px!important;right:7px!important;width:calc(100vw - 14px)!important;max-height:calc(100dvh - 24px)!important}
 .measurement-peek-heading span{display:none}
 .measurement-peek-list .delta-peek-card{display:none}
 .measurement-peek-card{max-width:48vw}
 .measurement-peek-more{padding:6px 7px;font-size:10px}
 .measurement-console-heading{padding:15px!important}
}
@media(max-width:350px){.marker-row-editor{grid-template-columns:1fr!important}.measurement-peek-heading{display:none}.measurement-peek-card{max-width:53vw}}

/* Optional site-wide display size control, independent of browser zoom. */
.rf-site-size{display:flex!important;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #dbe6ee;margin-top:8px;padding:12px 14px!important;color:#49657e;font-size:12px;font-weight:740;cursor:default}
.rf-site-size select{appearance:auto;flex:0 0 auto;width:85px;min-height:34px;padding:5px 7px;border:1px solid #bfd3e2;border-radius:7px;background:#fff;color:#1e445f;font-size:12px;font-weight:760}
html[data-theme="dark"] .rf-site-size{border-color:#426077;color:#deecf8}
html[data-theme="dark"] .rf-site-size select{background:#1c364c;color:#edf7ff;border-color:#56768d}
.rf-site-size select:focus-visible{outline:3px solid #5aa6d6;outline-offset:2px}


/* RFellow V4 — owner screenshot fixes: real marker action sizing + contrast-safe plots. */
.marker-manager-row .marker-row-actions{
  display:flex!important;align-items:center!important;gap:8px!important;
  flex-wrap:wrap;min-width:0;
}
.marker-manager-row .marker-manager-remove{
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 auto!important;width:auto!important;min-width:104px!important;
  max-width:100%;height:34px!important;padding:6px 12px!important;
  white-space:nowrap;line-height:1.2!important;font-size:11px!important;
  font-weight:790!important;color:#a33d50!important;
  border:1px solid #e4c3cb!important;background:#fff7f8!important;border-radius:8px;
}
.marker-manager-row .marker-row-lock{flex:0 0 auto!important;min-width:65px!important}
.marker-manager-row .marker-manager-remove:hover{background:#ffe7e9!important;border-color:#dca4b2!important}
html[data-theme="dark"] .marker-manager-row .marker-manager-remove{
  background:#402734!important;border-color:#8e5869!important;color:#ffe0e4!important;
}
html[data-theme="dark"] .marker-manager-row .marker-manager-remove:hover{background:#5a3545!important}
html[data-theme="dark"] .marker-manager-row .marker-row-lock{
  background:#24435a!important;border-color:#597790!important;color:#e4f3ff!important;
}
/* Do not paint dark-colored outlines over SVG tick labels. Text needs a true
   high-luminance fill and no overprint at both plot and Smith viewBox scales. */
html[data-theme="dark"] .plot-card svg.rf-plot .axis-label,
html[data-theme="dark"] .plot-card svg.rf-plot .axis-title{
  fill:#d9e9fa!important;stroke:none!important;paint-order:normal!important;
  opacity:1!important;
}
html[data-theme="dark"] .plot-card svg.rf-plot .axis-label{font-size:12.5px!important;font-weight:650}
html[data-theme="dark"] .plot-card svg.rf-plot .axis-title{font-size:12px!important;font-weight:760}
html[data-theme="dark"] .plot-card svg.rf-plot .grid{
  stroke:#4b6580!important;stroke-width:1.15!important;opacity:1!important;
}
html[data-theme="dark"] .plot-card svg.rf-plot .plot-bg{
  fill:#152539!important;stroke:#64819c!important;
}
html[data-theme="dark"] .plot-card svg.rf-plot .smith-bg{fill:#152539!important}
html[data-theme="dark"] .plot-card svg.rf-plot :is(.smith-grid,.smith-axis,.smith-boundary){
  stroke:#526b85!important;opacity:1!important;
}
html[data-theme="dark"] .plot-card svg.rf-plot .smith-grid.major{stroke:#718ba6!important}
html[data-theme="dark"] .plot-card svg.rf-plot :is(.smith-label,.smith-axis-callout,.smith-reactance-label){
  fill:#d9e9fa!important;opacity:1!important;
}
html[data-theme="dark"] .plot-card svg.rf-plot :is(.smith-axis-callout,.smith-reactance-label){
  stroke:#152539!important;stroke-width:2.1px!important;paint-order:stroke!important;
}
/* The split renderer contains its own legend, readout, plot and Smith panels.
   The old base stylesheet used white for its wrapper and nested surfaces. */
html[data-theme="dark"] .plot-card :is(.split-panels,.split-cartesian-panel,.split-smith-panel){
  background:#152539!important;color:#e3f1ff!important;border-color:#48617b!important;
}
html[data-theme="dark"] .plot-card :is(.split-cartesian-panel,.split-smith-panel) .legend{
  background:#20374e!important;color:#e0efff!important;border-color:#4e6981!important;
}
html[data-theme="dark"] .plot-card :is(.measurement-details,.measurement-summary,.measurement-preview,
 .marker-readout,.delta-readout,.marker-readout-group,.delta-readout-group,.readout-group,
 .smith-context,.smith-quick-readout,.smith-quick-card){
  background:#1c3248!important;color:#d9e9f8!important;border-color:#49637b!important;
}
html[data-theme="dark"] .plot-card :is(.measurement-summary strong,.measurement-summary small,
 .measurement-preview,.readout-heading strong,.readout-heading span,.smith-context strong,
 .smith-context span,.smith-quick-card strong,.smith-quick-card span,.marker-values span,
 .marker-values strong,.delta-result-pair span){
  color:#e4f2ff!important;opacity:1!important;
}
html[data-theme="dark"] .plot-card :is(.measurement-summary b,.delta-result-card,.marker-card){
  background:#25415b!important;color:#eaf5ff!important;border-color:#59748d!important;
}
html[data-theme="dark"] .plot-card .smith-marker-label{
  fill:#e8f4ff!important;stroke:#16283d!important;stroke-width:2!important;paint-order:stroke;
}
@media(max-width:700px){
  /* Plot + Smith must show both requested plots, stacked rather than
     silently hiding Smith on mobile. */
  .plot-card .split-panels{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .plot-card .split-smith-panel{display:block!important;min-width:0!important}
  .plot-card .split-cartesian-panel{min-width:0!important}
  .plot-card .split-smith-panel .smith-quick-readout{max-height:210px!important}
}
@media(max-width:360px){.marker-manager-row .marker-row-actions{gap:6px!important}}


/* RFellow V5 polish — transparent selection, no separate Edit button. */
.marker-manager-row{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:0!important;overflow:hidden}
.marker-manager-row .marker-row-trigger{
  grid-column:1/-1;display:grid;grid-template-columns:46px minmax(0,1fr) auto 17px;
  align-items:center;gap:9px;width:100%;min-width:0;min-height:52px;padding:9px 11px;
  background:transparent;color:#25445e;border:0;text-align:left;cursor:pointer;
}
.marker-manager-row .marker-row-trigger:hover{background:#e9f3f9}
.marker-manager-row .marker-row-trigger:focus-visible{outline:3px solid #408ac0;outline-offset:-3px;border-radius:8px}
.marker-manager-row .marker-manager-select{display:grid;place-items:center;border-left:4px solid var(--marker-color);pointer-events:none}
.marker-manager-row .marker-row-chevron{color:#688299;font-size:13px;justify-self:end}
.marker-manager-row .marker-row-editor{margin:0 11px 11px;padding-top:12px}
.marker-manager-row.is-active .marker-row-trigger{background:#eaf5fb}
.marker-manager-row.is-active .marker-row-trigger:hover{background:#dff1f9}
.marker-shortcut-hint{display:inline-flex;gap:6px;align-items:center;padding:5px 8px;border-radius:7px;
  font-size:11px;font-weight:770;white-space:nowrap;color:#3f6682;background:#edf5fa;border:1px solid #d8e7f0}
.marker-shortcut-hint kbd{padding:2px 5px;border-radius:5px;color:#275778;background:#fff;border:1px solid #b8d3e5;font:800 11px/1.2 system-ui,sans-serif}
html[data-theme="dark"] .marker-manager-row .marker-row-trigger{color:#eff7ff}
html[data-theme="dark"] .marker-manager-row .marker-row-trigger:hover{background:#2b4c66}
html[data-theme="dark"] .marker-manager-row.is-active .marker-row-trigger{background:#254a61}
html[data-theme="dark"] .marker-manager-row.is-active .marker-row-trigger:hover{background:#2e5770}
html[data-theme="dark"] .marker-manager-row .marker-row-chevron{color:#d0e5f3}
html[data-theme="dark"] .marker-shortcut-hint{color:#d0e9f9;background:#244258;border-color:#4c6e86}
html[data-theme="dark"] .marker-shortcut-hint kbd{color:#eef9ff;background:#142d42;border-color:#6a8aa3}
/* Read-only measurements: two dense engineering tables, separate from Edit controls. */
.plot-card .measurement-table-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:thin;
  border-top:1px solid #d9e6ef}
.plot-card .measurement-results-table{border-collapse:collapse;width:100%;min-width:450px;
  background:#fff;color:#284861;font-size:12px;font-variant-numeric:tabular-nums}
.plot-card .measurement-results-table thead{background:#ecf4f9}
.plot-card .measurement-results-table th{color:#496a84;text-align:left;font-size:11px;font-weight:800;white-space:nowrap;
 padding:10px 13px;border-bottom:1px solid #d9e6ef}
.plot-card .measurement-results-table td{padding:11px 13px;border-bottom:1px solid #e3edf4;color:#274862;
 white-space:nowrap;vertical-align:middle}
.plot-card .measurement-results-table tr:last-child td{border-bottom:0}
.plot-card .measurement-results-table tbody tr.measurement-result-row{cursor:pointer}
.plot-card .measurement-results-table tbody tr.measurement-result-row:hover{background:#edf6fb}
.plot-card .measurement-results-table tbody tr.measurement-result-row.is-active{background:#e4f2fb}
.plot-card .measurement-results-table tbody tr:focus-visible{outline:3px solid #3287b5;outline-offset:-3px}
.plot-card .measurement-results-table .measurement-result-label{font-weight:800;color:#173e5c;
 border-left:4px solid var(--result-accent,#4a97b4)}
.plot-card .delta-results-table .measurement-result-label{min-width:150px}
.plot-card .measurement-peek-more[aria-expanded="true"]{background:#dff0fa;border-color:#7baccc;color:#194b70}
html[data-theme="dark"] .plot-card .measurement-table-scroll{border-color:#49657e}
html[data-theme="dark"] .plot-card .measurement-results-table{background:#192f46;color:#e9f4ff}
html[data-theme="dark"] .plot-card .measurement-results-table thead{background:#25435d}
html[data-theme="dark"] .plot-card .measurement-results-table th{color:#d6e7f8;border-color:#56718a}
html[data-theme="dark"] .plot-card .measurement-results-table td{color:#e7f2fd;border-color:#425d75}
html[data-theme="dark"] .plot-card .measurement-results-table .measurement-result-label{color:#f6faff}
html[data-theme="dark"] .plot-card .measurement-results-table tbody tr.measurement-result-row:hover{background:#2d4f68}
html[data-theme="dark"] .plot-card .measurement-results-table tbody tr.measurement-result-row.is-active{background:#2a5069}
html[data-theme="dark"] .plot-card .measurement-peek-more[aria-expanded="true"]{background:#30627a;color:#eefaff;border-color:#7aa6ba}
@media(max-width:540px){.marker-shortcut-hint{font-size:10px;padding:5px}.marker-manager-row .marker-row-trigger{grid-template-columns:44px minmax(0,1fr) auto 14px;gap:6px;padding:8px}}
@media(prefers-reduced-motion:reduce){.marker-manager-row .marker-row-trigger{transition:none!important}}


/* RFellow V5 — restrained, discoverable navigation (no redesign).
   The active page alone owns a soft pill; all other links gain a subtle hover. */
.topbar .site-nav>a,.topbar .site-nav-more>summary{
  display:inline-flex;justify-content:center;align-items:center;gap:6px;
  min-height:40px;padding:7px 12px!important;border:1px solid transparent;
  border-radius:11px;color:#405b74!important;
  text-decoration:none;font-weight:710;
  transition:background-color 150ms ease,color 150ms ease,border-color 150ms ease;
}
.topbar .site-nav>a:hover,.topbar .site-nav-more>summary:hover{
  background:#eff6fb!important;color:#1b618f!important;border-color:#dfebf2!important;
}
.topbar .site-nav>a.nav-active,.topbar .site-nav>a[aria-current="page"]{
  background:#e8f3fa!important;border-color:#cce1ee!important;
  color:#185a87!important;font-weight:830!important;
}
.topbar .site-nav>a:focus-visible,.topbar .site-nav-more>summary:focus-visible{
  outline:3px solid #438fc1!important;outline-offset:2px;
}
html[data-theme="dark"] .topbar .site-nav>a,
html[data-theme="dark"] .topbar .site-nav-more>summary{
  color:#d4e3f2!important;border-color:transparent;
}
html[data-theme="dark"] .topbar .site-nav>a:hover,
html[data-theme="dark"] .topbar .site-nav-more>summary:hover{
  color:#edf8ff!important;background:#233e57!important;border-color:#3b617d!important;
}
html[data-theme="dark"] .topbar .site-nav>a.nav-active,
html[data-theme="dark"] .topbar .site-nav>a[aria-current="page"]{
  color:#f0f9ff!important;background:#294c65!important;border-color:#55819c!important;
}
@media(max-width:780px){.topbar .site-nav>a,.topbar .site-nav-more>summary{min-height:36px;padding:6px 9px!important;border-radius:9px}}
@media(prefers-reduced-motion:reduce){.topbar .site-nav>a,.topbar .site-nav-more>summary{transition:none!important}}

/* V6 — multi-DUT plot encoding: file color, parameter or file line pattern. */
.plot-card .legend .trace-encoding-hint{font-size:10px;font-weight:720;color:#49657d;white-space:normal}
.plot-card .legend .parameter-key svg,.plot-card .legend .dataset-key svg{width:28px;height:9px;flex:none}
.plot-card .legend .parameter-key svg{color:#506780}
html[data-theme="dark"] .plot-card .legend .trace-encoding-hint{color:#c7deef}
html[data-theme="dark"] .plot-card .legend .parameter-key svg{color:#d5e8f6}

/* V6B — Delta edit access and visible header Display size */
.plot-card .delta-results-table .delta-result-row{cursor:pointer}
.plot-card .delta-results-table .delta-result-row:hover{background:#eef6fb}
.plot-card .delta-results-table .delta-result-row:focus-visible{outline:3px solid #3287b5;outline-offset:-3px}
html[data-theme="dark"] .plot-card .delta-results-table .delta-result-row:hover{background:#2d4f68}
.rf-site-size-menu{position:relative;flex:0 0 auto;z-index:44}
.rf-site-size-menu>summary{cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:36px;padding:6px 9px;border:1px solid #cbdce7;border-radius:9px;list-style:none;color:#31516a;background:#f5f9fc;font-size:11px;font-weight:760;white-space:nowrap}
.rf-site-size-menu>summary::-webkit-details-marker{display:none}
.rf-site-size-menu>summary:hover,.rf-site-size-menu[open]>summary{background:#e8f3fa;border-color:#9bbbd0}
.rf-site-size-menu>summary:focus-visible{outline:3px solid #438fc1;outline-offset:2px}
.rf-site-size-panel{position:absolute;right:0;top:calc(100% + 7px);min-width:210px;z-index:45;border:1px solid #cbdce7;border-radius:10px;background:#fff;box-shadow:0 10px 26px #142c4928}
.rf-site-size-menu .rf-site-size{margin:0;border:0;padding:10px 12px!important;cursor:default}
html[data-theme="dark"] .rf-site-size-menu>summary{background:#20394f;color:#edf7ff;border-color:#54718b}
html[data-theme="dark"] .rf-site-size-menu>summary:hover,html[data-theme="dark"] .rf-site-size-menu[open]>summary{background:#2a4c65}
html[data-theme="dark"] .rf-site-size-panel{background:#1b3047;border-color:#52718a}
@media(max-width:580px){.rf-site-size-menu>summary{font-size:10px;padding:5px 6px;min-height:34px}.rf-site-size-panel{right:-38px}}


/* V7: editable, per-file trace appearance inside the loaded-file list. */
.sidebar .file-row{grid-template-columns:29px minmax(0,1fr) 49px 25px}
.file-style-toggle{height:37px;min-width:0;padding:4px 2px;border:0;border-left:1px solid #e0e7ed;background:transparent;color:#385a71;font-size:10px;font-weight:760}
.file-style-toggle::before{content:"";display:block;width:24px;max-width:85%;border-top:3px solid var(--trace-preview,#137fb3);margin:0 auto 3px}
.file-style-toggle:hover,.file-style-toggle[aria-expanded="true"]{background:#eaf4fa;color:#174d70}
.file-style-toggle:focus-visible{outline:3px solid #438fc1;outline-offset:-3px}
.file-style-editor{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr) auto;gap:9px;padding:12px;border-top:1px solid #d8e5ee;background:#f3f9fd;min-width:0}
.file-style-editor[hidden]{display:none!important}
.file-style-editor label{min-width:0;display:grid;gap:5px;font-size:10px;font-weight:740;color:#45647b}
.file-style-editor input[type="color"]{width:100%;height:32px;padding:2px;border:1px solid #bdd3e2;border-radius:6px;background:#fff}
.file-style-editor select{min-width:0;width:100%;height:32px;padding:4px 5px;border-radius:6px;border:1px solid #bdd3e2;background:#fff;color:#24445d;font-size:11px}
.file-style-reset{align-self:end;min-height:32px;padding:5px 7px;border:1px solid #bdd3e2;border-radius:6px;background:#fff;color:#2a5977;font-size:10px;font-weight:760}
.file-style-editor :is(input,select,button):focus-visible{outline:3px solid #438fc1;outline-offset:2px}
.file-style-note{grid-column:1/-1;font-size:10px;line-height:1.5;color:#55718a}
html[data-theme="dark"] .file-style-toggle{color:#d1e4f5;border-color:#456079}
html[data-theme="dark"] .file-style-toggle:hover,html[data-theme="dark"] .file-style-toggle[aria-expanded="true"]{background:#25445d;color:#eef9ff}
html[data-theme="dark"] .file-style-editor{background:#1a344c;border-color:#476681}
html[data-theme="dark"] .file-style-editor label,html[data-theme="dark"] .file-style-note{color:#d1e5f6}
html[data-theme="dark"] .file-style-editor :is(input,select,.file-style-reset){background:#213e57;color:#edf8ff;border-color:#567994}
@media(max-width:370px){.file-style-editor{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:8px}.file-style-reset{grid-column:1/-1}.sidebar .file-row{grid-template-columns:28px minmax(0,1fr) 43px 23px}}

/* RFellow V8: file Undo and adjustable trace width in both themes. */
.sidebar .file-style-editor{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.sidebar .file-style-editor input[type="range"]{min-width:0;width:100%;accent-color:#2079a9}
.trace-width-value{color:#335e78;font-size:10px;font-weight:760}
.file-undo{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;margin:8px 0;border:1px solid #b2ccdb;border-radius:8px;background:#e9f5fa;color:#244e66;font-size:11px}
.file-undo-action{border:1px solid #8eafc5;background:#fff;color:#205a7b;padding:7px 10px;border-radius:7px;font-weight:760;cursor:pointer}
.file-undo-action:focus-visible{outline:3px solid #438fc1;outline-offset:2px}
html[data-theme="dark"] .trace-width-value{color:#d1e6f5}
html[data-theme="dark"] .file-undo{background:#213c53;border-color:#60829a;color:#f0f8ff}
html[data-theme="dark"] .file-undo-action{background:#294d65;border-color:#6d94ad;color:#fff}
@media(max-width:370px){.sidebar .file-style-editor .file-style-reset{grid-column:1/-1}}

/* V42: compact native select on narrow Contact screens; topic hint remains visible. */
@media(max-width:390px){.rf-contact-page .rf-feedback-form select{min-width:0;font-size:13px;padding-right:20px}}

/* V46: make real Smith data legible on narrow screens without scaling source data.
   The original SVG viewBox stays intact; the margins crop only empty side space.
   SVG pointer coordinates continue to follow its real client rect. */
@media(max-width:620px){
 #plot{overflow:hidden}
 #plot svg.smith-plot{
  display:block;width:172%!important;max-width:none!important;
  margin-left:-36%!important;min-height:0!important;height:auto!important;
 }
 #plot .split-smith-panel{overflow:hidden}
}
/* Light Smith grids need contrast on the actual engineering graph, not just legends. */
html[data-theme="light"] #plot svg.smith-plot :is(.smith-grid,.smith-axis,.smith-boundary){
 stroke:#7891a8!important;stroke-width:1.2px!important;
 vector-effect:non-scaling-stroke;opacity:1!important;
}
html[data-theme="light"] #plot svg.smith-plot .smith-grid.major{stroke:#4f7390!important}
html[data-theme="light"] #plot svg.smith-plot :is(.smith-label,.smith-axis-callout,.smith-reactance-label){
 fill:#35536e!important;opacity:1!important;
}

/* V49: visible skip navigation for keyboard users. */
.rf-a11y-skip{position:absolute;z-index:9999;inset-inline-start:12px;top:-100px;background:#fff;color:#11263e;border:2px solid #315da5;border-radius:6px;padding:10px 14px;font-weight:700;text-decoration:none}
.rf-a11y-skip:focus{top:12px;outline:3px solid #315da5;outline-offset:2px}
/* V51: dark Analyzer privacy note child text must meet normal-text contrast. */
html[data-theme="dark"] .privacy-card strong{color:#d0f3e7!important}
html[data-theme="dark"] .privacy-card span{color:#bbded0!important}
