/* Shared visual vocabulary. Copy, API contracts and working controls live in their existing modules. */
#app{--voice-cyan:var(--skin-cyan,#8de4db);--voice-violet:var(--skin-violet,#c5b6f7);--voice-amber:var(--skin-amber,#f1c282)}
#app .fh-header-inner{max-width:var(--fh-page-width);padding-inline:var(--fh-page-gutter)}
body:is(:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-header{background:var(--skin-canvas,#07141ef5);border-bottom:1px solid var(--skin-line,#31495688);color:var(--skin-ink,#e1edf2)}
body:is(:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-header .fh-wordmark img{filter:invert(1)}
body:is(:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-header :is(.fh-nav>a,.fh-products-toggle,.fh-account-button){color:var(--skin-ink,#dce9ee)}
body:is(:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-header .fh-account-button{background:transparent;border-color:var(--skin-line,#405864)}
body:is(:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-header :is(.fh-nav>a,.fh-products-toggle):hover{background:var(--skin-hover,#ffffff12)}
body:is(:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-menu>summary>span{background:#e1edf2}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) :is(.fh-product-panel-card,.fh-mobile-menu>nav){background:var(--skin-panel,#10232f);border-color:var(--skin-line,#35515f);color:var(--skin-ink,#e5eff3);box-shadow:0 18px 50px #0005}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) :is(.fh-product-menu-grid,.fh-mobile-product-list)>a{color:var(--skin-ink,#e2edf2)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-product-panel .fh-product-menu-grid>a:is(:hover,:focus-visible,[aria-current=page]){background:var(--skin-soft,#213a48);color:var(--skin-ink,#fff)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-product-panel .fh-product-menu-grid>a>span:nth-child(2)>span{color:var(--skin-muted,#a4bac7)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-product-panel .fh-product-icon{background:var(--skin-soft,#1d3644);color:var(--skin-cyan,#8de4db)}
.fh-product-panel [data-product-id=emotion] .fh-product-icon{color:var(--skin-violet,#c5b6f7)!important}
.fh-product-panel [data-product-id=detect] .fh-product-icon{color:var(--skin-amber,#f1c282)!important}
.fh-menu-recommended{background:var(--skin-soft,#203c4c);color:var(--skin-ink,#a2d2ed)}

/* Four interwoven signals repeat across the brand, without suggesting measured audio. */
.voice-geometry{color:var(--product-accent,var(--skin-cyan,#8de4db));pointer-events:none;user-select:none;min-width:0}
.voice-geometry svg{display:block;width:100%;height:100%;overflow:visible}
.vg-signal-grid{stroke:currentColor;stroke-width:.6;opacity:.08}
.vg-thread{color:var(--thread-color,var(--skin-cyan,#8de4db))}
.vg-thread[data-wave="1"],[data-rhythm-word="1"]{--thread-color:var(--skin-blue,#9ec8ee)}
.vg-thread[data-wave="2"],[data-rhythm-word="2"]{--thread-color:var(--skin-violet,#c5b6f7)}
.vg-thread[data-wave="3"],[data-rhythm-word="3"]{--thread-color:var(--skin-cyan,#71c9cc)}
.vg-signal-line{stroke:currentColor;stroke-width:1.4;opacity:.48;vector-effect:non-scaling-stroke}
.vg-signal-flow{stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-dasharray:14 86;stroke-dashoffset:calc(var(--wave)*-25);opacity:.85;vector-effect:non-scaling-stroke}
.vg-beat-guide{stroke:currentColor;stroke-width:.8;stroke-dasharray:2 6;opacity:.18}
.vg-beat-dot{fill:currentColor;opacity:.25;transition:opacity .07s ease,r .07s ease}
.vg-beat-halo{fill:currentColor;opacity:0;transition:opacity .07s ease}
.fh-hero-signal{width:min(760px,46%);margin-top:24px;height:145px;pointer-events:none}
.vg-echo{position:relative;width:100%;height:100%;opacity:.36;mask-image:linear-gradient(90deg,transparent,#000 20%,#000 70%,transparent)}
.vg-echo .vg-signal-grid{display:none}
.vg-echo .vg-signal-line{stroke-width:1.1}
.vg-echo .vg-signal-flow{stroke-width:1.4;opacity:.5}
.fh-home-film-hero .fh-home-intro-inner h1{font-size:clamp(35px,3.25vw,48px);line-height:1.16;letter-spacing:-1.2px}
.fh-home-film-hero .fh-home-intro-inner h1 em{color:var(--skin-blue,#80b8ff)}
.fh-home-film-hero .fh-home-intro-copy{font-size:14px;line-height:1.85}
.home-rhythm{position:relative;isolation:isolate;gap:40px;grid-template-columns:1fr 1.15fr;padding-block:90px}
.home-rhythm h2{font-size:clamp(28px,2.6vw,38px)}
.home-rhythm-copy>p:not(.fh-kicker)+p{margin-top:18px}
.home-rhythm-art{position:relative;padding:20px 0;isolation:isolate}
.home-rhythm-art::before{content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse,var(--skin-soft,#123e4a70),transparent 66%);pointer-events:none}
.vg-rhythm{width:100%;height:330px;margin:0}
.vg-rhythm .vg-signal-line{stroke-width:1.05;opacity:.6;stroke-linecap:round;stroke-linejoin:round}
.vg-rhythm .vg-signal-flow{stroke-width:1.5}
.home-rhythm-words{margin-top:0;gap:0;text-align:center}
.home-rhythm-words>span{gap:12px;align-items:center;color:var(--skin-muted,#91aab9);transition:color .07s ease}
.home-rhythm-words b{font-size:clamp(27px,2.6vw,38px)}
.home-rhythm-words i{width:calc(100% - 16px)}
.home-rhythm[data-beat="0"] [data-wave="0"],.home-rhythm[data-beat="1"] [data-wave="1"],.home-rhythm[data-beat="2"] [data-wave="2"],.home-rhythm[data-beat="3"] [data-wave="3"]{--beat-active:1}
.home-rhythm .vg-thread .vg-beat-dot{opacity:var(--beat-active,.25);r:calc(4px + var(--beat-active,0)*2px);filter:drop-shadow(0 0 6px currentColor)}
.home-rhythm .vg-thread .vg-beat-halo{opacity:calc(var(--beat-active,0)*.2)}
.home-rhythm .vg-thread .vg-signal-line{transition:opacity .07s ease;opacity:calc(.38 + var(--beat-active,0)*.62)}
.home-rhythm[data-beat="0"] [data-rhythm-word="0"],.home-rhythm[data-beat="1"] [data-rhythm-word="1"],.home-rhythm[data-beat="2"] [data-rhythm-word="2"],.home-rhythm[data-beat="3"] [data-rhythm-word="3"]{color:var(--thread-color,var(--skin-cyan,#8de4db));--word-active:1}
.home-rhythm [data-rhythm-word] b{transition:opacity .07s ease,text-shadow .07s ease;opacity:calc(.65 + var(--word-active,0)*.35);text-shadow:0 0 calc(var(--word-active,0)*14px) currentColor}
.home-rhythm [data-rhythm-word] i{transition:opacity .07s ease;background:currentColor;opacity:calc(.2 + var(--word-active,0)*.8)}
.home-rhythm[data-play=off] [data-rhythm-word]{color:var(--skin-ink,#cadce6)}
.home-rhythm[data-play=off] [data-rhythm-word] b{opacity:1}
.home-rhythm[data-beat=rest] [data-rhythm-word]{color:var(--skin-muted,#b3c8d4)}
.home-rhythm[data-beat=rest] [data-rhythm-word] b{opacity:1;text-shadow:none}
.home-rhythm[data-play=loop][data-beat=rest] .vg-signal-flow{opacity:.15;animation-play-state:paused}
.home-rhythm[data-beat=rest] .vg-beat-dot{filter:none}
.vg-product{position:absolute;z-index:-1;inset:0 -70px auto auto;width:850px;height:380px;opacity:.55;mask-image:linear-gradient(90deg,transparent,#000 45%)}
.vg-edge{position:absolute;width:180px;height:140px;opacity:.3;pointer-events:none}
.vg-fold{stroke:currentColor;stroke-width:1;transform-origin:center;transform-box:fill-box}
.vg-fold circle{fill:currentColor;stroke:none}
.vg-fold-edges{opacity:.4}
.home-developer>.vg-edge{left:-100px;bottom:12px;width:160px;height:120px;opacity:.25}
.home-rhythm>.vg-edge{left:-115px;top:18px;width:140px;height:100px;opacity:.22;transform:rotate(-12deg)}
.fh-footer{position:relative;isolation:isolate;overflow:hidden}
.fh-footer>.vg-edge{right:-35px;top:0;width:240px;height:180px;opacity:.18}
@media(prefers-reduced-motion:no-preference){
 .vg-signal-flow{animation:voice-signal-flow 9s linear infinite}
 .fh-home-film-hero:has([data-running=false]) .vg-echo .vg-signal-flow{animation-play-state:paused}
 .home-rhythm .vg-signal-flow{animation-duration:4s;animation-play-state:paused}
 .home-rhythm[data-play=loop] .vg-signal-flow{animation-play-state:running}
 .vg-fold{animation:voice-fold-drift 10s ease-in-out infinite alternate}
 @keyframes voice-signal-flow{to{stroke-dashoffset:calc(var(--wave)*-25 - 100)}}
 @keyframes voice-fold-drift{to{transform:translateY(-8px) rotate(5deg)}}
}

/* Product introductions use the same dark canvas and semantic accents as Home. */
body:has([data-product-page]){--bg:var(--skin-canvas,#07141e);--ink:var(--skin-ink,#e5eff3);--muted:var(--skin-muted,#a6bcc9);--line:var(--skin-line,#2a4352);--soft:var(--skin-panel,#10232f);background:var(--bg);color:var(--ink)}
[data-product-page]{--product-accent:var(--skin-cyan,#8de4db)}
[data-product-page=emotion]{--product-accent:var(--skin-violet,#c5b6f7)}
[data-product-page=detect]{--product-accent:var(--skin-amber,#f1c282)}
[data-product-page=standard]{--product-accent:var(--skin-blue,#94c5ff)}
body:has([data-product-page]) .fh-main{background:transparent}
:is(.fp-hero,.fh-authenticity-hero){position:relative;isolation:isolate}
[data-product-page] :is(h1,h2),html:lang(zh-CN) .marketing [data-product-page] :is(h1,h2){font-family:var(--sans);font-weight:550;letter-spacing:-.7px}
[data-product-page] :is(.fp-hero h1 em,.fh-kicker,.fp-features article>span){color:var(--product-accent)}
[data-product-page] :is(.fp-intro,.fp-story-heading>p:not(.fh-kicker),.fp-features p,.fp-tags,.fp-usecases,.fp-doc-link,.fp-peer-link,.fp-home-link,.fp-demo-note,.fh-authenticity-intro,.fh-authenticity-process ol,.fh-authenticity-outcomes dd,.fh-authenticity-notes p,.fh-authenticity-related-links>a){color:var(--skin-muted,#aec2ce)}
[data-product-page] :is(.fp-features h3,.fh-authenticity-outcomes dt){color:var(--skin-ink,#e2edf2)}
[data-product-page] :is(.fp-demonstration,.fp-related,.fh-authenticity-outcomes,.fh-authenticity-illustration){background:var(--skin-panel,#10232f);border:1px solid var(--skin-line,#314d5d);border-radius:16px;box-shadow:none}
[data-product-page] :is(.fp-features article,.fp-related-card,.fp-related-options,.fp-demonstration>figcaption,.fh-authenticity-outcomes dl>div){border-color:var(--skin-line,#314d5d)}
[data-product-page] .fp-demonstration>figcaption>span:first-child{color:var(--product-accent)}
[data-product-page] .fp-demonstration>figcaption>span:last-child{color:var(--skin-muted,#a7bdca)}
[data-product-page] :is(.fp-demo-tabs,.fp-caption-paper,.fp-library>button){background:var(--skin-soft,#0a1a25);border-color:var(--skin-line,#314d5d);color:var(--skin-ink,#e5eff3)}
[data-product-page] .fp-demo-tabs button{color:var(--skin-muted,#aec2ce)}
[data-product-page] :is(.fp-demo-tabs button[aria-pressed=true],.fp-library>button[aria-pressed=true]){background:var(--skin-soft,#213c4b);color:var(--product-accent);border-color:var(--product-accent)}
[data-product-page] :is(.fp-quote,.fp-transcript-words,.fp-utterance p,.fp-caption-paper p,.fp-speaker strong,.fp-library strong){font-family:var(--sans);color:var(--skin-ink,#e2edf2)}
[data-product-page] :is(.fp-demo-meta,.fp-demo-foot,.fp-caption-label,.fp-library small,.fp-focus-caption,.fp-speaker>span){color:var(--skin-muted,#9db7c7)}
[data-product-page] :is(.fp-emotion-bars>div,.fp-emotion-orb){color:var(--product-accent)}
[data-product-page] .fp-emotion-orb{background:var(--skin-soft,#223342)}
[data-product-page] .fp-emotion-bars i{background:var(--skin-soft,#314555)}
[data-product-page] .fp-emotion-bars b{background:var(--product-accent)}
[data-product-page] .fp-avatar{background:var(--skin-soft,#284653);color:var(--product-accent)}
[data-product-page] .fp-wave{visibility:hidden}
[data-product-page] .fp-related-name{color:var(--skin-ink,#e2edf2)}
[data-product-page] .fp-related-action{background:var(--skin-soft,#203c4c);color:var(--skin-ink,#acd1ef);border-color:var(--skin-line,#3a5668)}
[data-product-page] .fp-related-card:hover{background:var(--skin-soft,#1d3442);box-shadow:0 0 0 8px #1d3442}
[data-product-page] .fh-button.blue{background:var(--product-accent);border-color:var(--product-accent);color:#0b202b}
[data-product-page] .fh-button.blue:hover{filter:brightness(1.08)}
body:has([data-product-page]) .fh-footer{background:var(--skin-soft,#091923);border-color:var(--skin-line,#314d5d);color:var(--skin-muted,#a6bcc9)}
body:has([data-product-page]) .fh-footer .fh-wordmark img{filter:invert(1)}
body:has([data-product-page]) .fh-footer-main>div>a{color:var(--skin-ink,#b9ccd8)}
body:has([data-product-page]) .fh-footer-main>div>p{color:var(--skin-muted,#91adbf)}
body:has([data-product-page]) .fh-footer .fh-language-trigger{background:var(--skin-panel,#102431);color:var(--skin-ink,#c6d9e5);border-color:var(--skin-line,#3a5363)}

/* Documentation shares the dark palette with a quieter reading contrast. */
body[data-page=docs]{--bg:var(--skin-canvas,#07141e);--ink:var(--skin-ink,#e5eff3);--line:var(--skin-line,#2d4655);--soft:var(--skin-panel,#142a37);--panel:var(--skin-panel,#10232f);--muted:var(--skin-muted,#a6bcc9);background:var(--bg);color:var(--ink);color-scheme:dark}
body:is([data-page=transcribe],[data-page=docs]) :is(.fh-main.workspace,.fh-main.documentation){background:transparent}
body[data-page=transcribe] :is(.pg-page-head h1,.fh-workspace-head h1),.fh-start-guide h1{font-family:var(--sans);font-weight:550;font-size:clamp(32px,3vw,44px);letter-spacing:-1px}
body[data-page=transcribe] .pg-capability-tabs{background:var(--skin-panel,#10232f);border:1px solid var(--skin-line,#314d5d);border-radius:12px}
body[data-page=transcribe] .pg-capability-tabs button{color:var(--skin-muted,#adc0cb)}
body[data-page=transcribe] .pg-capability-indicator{background:var(--skin-soft,#213c4b);border-color:var(--skin-line,#496d7b);box-shadow:inset 0 1px #ffffff16}
body[data-page=transcribe] .pg-capability-tabs button[aria-pressed=true]{color:var(--skin-cyan,#8de4db)}
body[data-page=transcribe] .pg-capability-tabs button[data-value=emotion][aria-pressed=true]{color:var(--skin-violet,#c5b6f7)}
body[data-page=transcribe] .pg-capability-tabs button[data-value=deepfake][aria-pressed=true]{color:var(--skin-amber,#f1c282)}
body[data-page=transcribe] .pg-studio{border-radius:16px;border-color:var(--skin-line,#314d5d);box-shadow:0 16px 48px #0002;overflow:hidden}
body[data-page=transcribe] .pg-studio-header{background:var(--skin-panel,#132b38);padding-block:18px}
body[data-page=transcribe] .pg-product-mark{border-radius:10px;background:var(--skin-soft,#1c3f43);border-color:var(--skin-line,#3e7775);color:var(--skin-cyan,#8de4db)}
body[data-page=transcribe] .pg-layout:has([data-value=emotion][aria-pressed=true]) .pg-product-mark{background:var(--skin-soft,#302e46);border-color:var(--skin-line,#655c86);color:var(--skin-violet,#c5b6f7)}
body[data-page=transcribe] .pg-layout:has([data-value=deepfake][aria-pressed=true]) .pg-product-mark{background:var(--skin-soft,#39352b);border-color:var(--skin-line,#7c694a);color:var(--skin-amber,#f1c282)}
body[data-page=transcribe] :is(.pg-record.primary,.pg-asr-options,.pg-message){border-radius:10px}
.dc-code,.pg-json-panel{background:var(--skin-panel,#0e2230);border-color:var(--skin-line,#304d60);border-radius:12px}
.dc-code pre,.pg-json-panel .pg-json{color:var(--skin-ink,#d6e8f2);padding:46px 20px 22px;scrollbar-width:thin}
.dc-syntax .tok-keyword,.pg-json-literal{color:var(--skin-violet,#c5b6f7)}
.dc-syntax .tok-string,.pg-json-string{color:var(--skin-cyan,#8de4db)}
.dc-syntax .tok-number,.pg-json-number{color:var(--skin-amber,#f1c282)}
.dc-syntax .tok-property,.pg-json-key{color:var(--skin-ink,#a9cfff)}
.dc-syntax .tok-comment{color:var(--skin-muted,#91adbf)}
.dc-code>button{color:var(--skin-ink,#cde0eb);background:var(--skin-soft,#233e50);border-color:var(--skin-line,#415d6e);border-radius:6px}
.pg-json-heading{border-color:var(--skin-line,#304d60);color:var(--skin-ink,#b5cddc)}
.dc-nav a[aria-current],#docs-search-results a[aria-current]{background:#e0eeef;color:#235b65;box-shadow:inset 3px 0 #398980}
.dc-nav a:hover,#docs-search-results a:hover{background:#e6eef1}
#docs-search{border-radius:8px;padding:10px 12px;border-color:#cbdbe3}
.dc-article h2{border-top-color:#d5e3e8}
.dc-article :not(pre)>code{background:#e6eef2;color:#24566b}
@media(max-width:800px){
 .vg-product{display:none}
 .fh-hero-signal{max-width:460px}
 .home-rhythm{grid-template-columns:1fr;gap:32px;padding-block:48px}
 .vg-rhythm{height:300px}
 .fh-home-film-hero .fh-home-intro-inner h1{font-size:clamp(30px,7.5vw,42px)}
 body:has([data-product-page]) .fh-main{overflow-x:clip}
}
@media(max-width:420px){.vg-rhythm{height:250px}.home-rhythm h2{font-size:28px}.home-rhythm-words b{font-size:29px}}
/* Keep older illustration internals in the shared product palette. */
[data-product-page] .fp-location-row [aria-current=page]{color:var(--product-accent)}
[data-product-page] .fp-demonstration>figcaption .pg-icon{color:var(--product-accent)}
[data-product-page] .fp-utterance:not(.is-muted){padding:10px;border:1px solid var(--skin-line,#3a5c69);background:var(--skin-soft,#1b3542);border-radius:9px}
[data-product-page] .fp-utterance.is-muted{opacity:.4}
[data-product-page] .fp-focus-wave{justify-content:space-between;padding-top:18px}
[data-product-page] .fp-focus-wave>.fp-wave{display:none}
[data-product-page] .fp-result-title{color:var(--skin-ink,#b9cad6)}
[data-product-page=detect] .hs-scene{--hs-blue:var(--skin-amber,#f1c282);--hs-line:var(--skin-line,#405563)}
[data-product-page=detect] .hs-authenticity-source{background:var(--skin-panel,#182e3a);border-color:var(--skin-line,#3c5666);border-radius:12px}
[data-product-page=detect] .hs-authenticity-source-ai{background:var(--skin-soft,#302f29);border-color:var(--skin-line,#8b7552)}
[data-product-page=detect] .hs-authenticity-source :is(.hs-authenticity-source-label,.hs-authenticity-quote){color:var(--skin-ink,#d9e6ee)}
[data-product-page=detect] .hs-authenticity-source-ai :is(.hs-authenticity-source-label,.hs-authenticity-quote){color:var(--skin-amber,#f1c282)}
[data-product-page=detect] :is(.hs-authenticity-quote,.hs-authenticity-purpose>p){font-family:var(--sans)}
[data-product-page=detect] :is(.hs-authenticity .hs-authenticity-question,.hs-authenticity-origin,.hs-authenticity-purpose>span:last-child){color:var(--skin-muted,#a8bfcc)}
[data-product-page=detect] .hs-authenticity-connector,[data-product-page=detect] .hs-authenticity-ai-mark{border-color:var(--skin-line,#806e50)}
[data-product-page=detect] .hs-authenticity-connector::after{background:#806e50}
[data-product-page=detect] .hs-scene-caption{border-color:var(--skin-line,#405563);color:var(--skin-muted,#9cb5c5)}
.fh-authenticity-status>a{font-size:13px;color:var(--skin-ink,#c1d6e3);text-decoration:none}
.fh-authenticity-status>a:first-child{display:inline-flex;align-items:center;min-height:46px;padding:12px 24px;border-radius:8px;background:var(--product-accent);color:#15232a;font-weight:600}
.fh-authenticity-status>span:last-child{flex-basis:100%;color:var(--skin-muted,#9cb5c5)}
.home-rhythm-caption>button:focus-visible{outline:2px solid var(--skin-cyan,#8de4db);outline-offset:4px;background:transparent;color:var(--skin-ink,#d4eee9)}
.fm-stage :is(.fm-scan-card>p,.fm-emotion-source>p){font-family:var(--sans)}
body[data-page=docs] .fh-footer{background:var(--skin-soft,#091923);border-color:var(--skin-line,#314d5d)}
body[data-page=transcribe] .pg-code-body{background:var(--skin-panel,#10232f);border-color:var(--skin-line,#304d60);color:var(--skin-ink,#d9e8f1)}
body[data-page=transcribe] .pg-code-body pre{background:transparent;color:var(--skin-ink,#d9e8f1)}
body[data-page=transcribe] .pg-code-body code{background:none;color:inherit}
@media(max-width:800px){.vg-echo{transform:none}.home-rhythm-art::before{inset:0}}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-menu>nav a{color:var(--skin-ink,#dce9ef)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-menu>nav a:hover{background:var(--skin-soft,#203948)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-product-list{border-color:var(--skin-line,#35515f)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-product-list .fh-product-icon{background:var(--skin-soft,#203948);color:var(--skin-cyan,#8de4db)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-product-list>a>span:nth-child(2)>span{color:var(--skin-muted,#adc0cb)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-product-list [data-product-id=emotion] .fh-product-icon{color:var(--skin-violet,#c5b6f7)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-mobile-product-list [data-product-id=detect] .fh-product-icon{color:var(--skin-amber,#f1c282)}

/* Working panels share the dark canvas, with clear surface and status contrast. */
body:is([data-page=transcribe],[data-page=billing],[data-page=benchmark]),.hc-home-landing .hc-live-panel{--bg:var(--skin-canvas,#07141e);--panel:var(--skin-panel,#10232f);--ink:var(--skin-ink,#e5eff3);--muted:var(--skin-muted,#a6bcc9);--line:var(--skin-line,#314d5d);--soft:var(--skin-panel,#182f3d);color:var(--ink);background:var(--bg);color-scheme:dark}
body[data-page=transcribe] .fh-main,body[data-page=billing] .fh-main{background:transparent}
body[data-page=transcribe] .pg-page-head{position:relative;isolation:isolate;overflow:hidden;padding-bottom:24px}
body[data-page=transcribe] .pg-page-head .fh-text-link{color:var(--skin-muted,#afccd9)}
.pg-layout{--pg-accent:var(--skin-cyan,#8de4db)}
.pg-layout:has([data-value=emotion][aria-pressed=true]){--pg-accent:var(--skin-violet,#c5b6f7)}
.pg-layout:has([data-value=deepfake][aria-pressed=true]){--pg-accent:var(--skin-amber,#f1c282)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-studio,.pg-studio-footer,.pg-live .trial-results,.pg-live .trial-result-header,.pg-access-body,.pg-voice-popover,.pg-voice-detail,.pg-voice-confirm,.speaker-discovery-item,.pg-voice-select .pg-candidates label){background:var(--skin-panel,#10232f);border-color:var(--skin-line,#314d5d);color:var(--skin-ink,#e5eff3)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-emotion-choices,.pg-guest-notice,.pg-guest-nudge,.pg-asr-options,.pg-code-example){background:var(--skin-soft,#0b1c27);border-color:var(--skin-line,#314d5d);color:var(--skin-muted,#adc3d0)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-message{background:var(--skin-soft,#1b3342);color:var(--skin-ink,#c3d9e5);border:1px solid var(--skin-line,#345568)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-message.error{background:var(--skin-panel,#30232c);color:var(--skin-ink,#f0b3bb);border:1px solid var(--skin-line,#65414c);border-left:3px solid #cd8493}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-card input:not([type=checkbox]):not([type=radio]),.pg-card select,.pg-target-select select){background:var(--skin-soft,#091a25);border-color:var(--skin-line,#3d5869);color:var(--skin-ink,#e3eef4)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-card :is(input,select):focus-visible{outline:2px solid var(--skin-cyan,#8de4db);outline-offset:2px}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-card input::placeholder{color:var(--skin-muted,#8fa9b9)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-candidates label:has(:checked),.pg-emotion-choices button[aria-pressed=true]){background:var(--skin-soft,#243e4e);border-color:#668d9c;color:var(--pg-accent)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-record.primary,.pg-connect-surface button.primary){background:var(--pg-accent);border-color:var(--pg-accent);color:#10232f}
body[data-page=transcribe] .pg-layout:not(.pg-embedded) :is(.pg-record-controls .pg-upload-link,.pg-capture-controls .pg-direct-upload){background:var(--skin-panel,#172e3c);color:var(--skin-ink,#d3e3ec);border-color:var(--skin-line,#3d5869)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-file-button,.pg-card .quiet,.pg-target-create){background:transparent;color:var(--skin-ink,#b9d4e3);border-color:var(--skin-line,#3d5869)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-access-body a,.pg-access-body button,.pg-guest-notice a,.pg-guest-nudge button){color:var(--skin-blue,#9dcaff)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-access-title,.pg-studio-title,.pg-result-text,.trial-line,.trial-text){color:var(--skin-ink,#e5eff3)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-access-body p{color:var(--skin-muted,#a6bcc9)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-capability-tabs button:hover{background:var(--skin-hover,#ffffff08);color:var(--skin-ink,#e5eff3)}
body[data-page=transcribe] .pg-code-example>summary{color:var(--skin-ink,#bad1df)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .speaker-discovery-avatar{background:var(--skin-soft,#23434e);color:var(--skin-cyan,#8de4db)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.portal-skeleton-line,.portal-skeleton-block){background:var(--skin-soft,#223b49)}
body:is([data-page=transcribe],[data-page=billing],[data-page=benchmark]) .fh-footer{background:var(--skin-soft,#091923);border-color:var(--skin-line,#314d5d);color:var(--skin-muted,#a6bcc9)}
body:is([data-page=transcribe],[data-page=billing],[data-page=benchmark]) .fh-footer .fh-wordmark img{filter:invert(1)}
body:is([data-page=transcribe],[data-page=billing],[data-page=benchmark]) .fh-footer-main>div>a{color:var(--skin-ink,#b9ccd8)}
body:is([data-page=transcribe],[data-page=billing],[data-page=benchmark]) .fh-footer-main>div>p{color:var(--skin-muted,#91adbf)}
body:is([data-page=transcribe],[data-page=billing],[data-page=benchmark]) .fh-footer .fh-language-trigger{background:var(--skin-panel,#102431);color:var(--skin-ink,#c6d9e5);border-color:var(--skin-line,#3a5363)}

/* Pricing and FAQs use a compact editorial layout on the same brand canvas. */
body[data-page=billing] .billing-pricing-head h1{font-family:var(--sans);font-weight:550;font-size:clamp(38px,4.6vw,60px);letter-spacing:-1.6px}
body[data-page=billing] .billing-pricing-head{margin-bottom:64px}
body[data-page=billing] .billing-pricing-head .fh-kicker{color:var(--skin-cyan,#8de4db)}
body[data-page=billing] .billing-contact-sales{border-color:var(--skin-line,#496476);color:var(--skin-ink,#bbcedb)}
body[data-page=billing] .billing-rate-table{border:1px solid var(--skin-line,#314d5d)}
body[data-page=billing] .billing-rate-table thead{background:var(--skin-panel,#172e3c)}
body[data-page=billing] .billing-rate-table thead th{border-color:var(--skin-line,#314d5d)}
body[data-page=billing] .billing-rate-table tbody tr:nth-child(odd){background:var(--skin-panel,#10232f)}
body[data-page=billing] .billing-rate-table tbody tr+tr{border-color:var(--skin-line,#314d5d)}
body[data-page=billing] .billing-rate-value>strong{color:var(--skin-cyan,#8de4db)}
.billing-faq{display:grid;grid-template-columns:minmax(180px,.36fr) minmax(0,1fr);gap:0 72px;align-items:start;padding:64px 0;margin-bottom:0}
.billing-faq-heading{grid-column:1;grid-row:1 / span 2;min-width:0}
.billing-faq-heading h2{font-size:38px;text-align:left;margin:6px 0 24px;letter-spacing:-1px;color:var(--skin-ink,#e5eff3)}
.vg-faq{width:100%;max-width:270px;height:140px;opacity:.65;margin-left:-20px}
.billing-faq-list{grid-column:2;width:100%;max-width:none;margin:0}
.billing-faq-list summary{padding:21px 4px;color:var(--skin-ink,#dce8ef);font-size:16px;gap:22px}
.billing-faq-list summary:hover,.billing-faq-list details[open] summary{color:var(--skin-cyan,#8de4db)}
.billing-faq-list summary:after{border:0;width:14px;height:14px;margin:0;transform:none;background:linear-gradient(currentColor,currentColor) center/12px 1px no-repeat,linear-gradient(currentColor,currentColor) center/1px 12px no-repeat}
.billing-faq-list details[open] summary:after{transform:none;background:linear-gradient(currentColor,currentColor) center/12px 1px no-repeat}
.billing-faq-list p{font-size:14px;line-height:1.8;margin:0 36px 24px 4px;color:var(--skin-muted,#a6bcc9)}
.billing-faq-credits{grid-column:2;margin:24px 0 0;color:var(--skin-blue,#9dcaff);font-size:13px}
@media(max-width:1000px){.hc-home-landing .hc-copy{gap:18px 30px}.hc-home-landing .hc-actions{gap:14px}.billing-faq{gap:0 36px}}
@media(max-width:760px){
 .billing-faq{grid-template-columns:minmax(0,1fr);gap:20px;padding:40px 0}
 .billing-faq-heading{grid-column:1;grid-row:auto;position:relative;min-height:65px}
 .billing-faq-heading h2{font-size:30px;margin:0}
 .vg-faq{position:absolute;right:0;top:-25px;width:110px;height:100px;margin:0;opacity:.6}
 .billing-faq-list,.billing-faq-credits{grid-column:1}
 .billing-faq-list summary{font-size:15px;padding-block:19px}
 .billing-faq-credits{margin-top:4px}
 .fh-hero-signal{width:100%;order:5;height:112px;margin-top:0;opacity:.85}
 .vg-echo{width:100%;height:100%;opacity:.32}
 .vg-rhythm{height:240px}
 .home-rhythm-words{gap:0}
 .home-developer>.vg-edge,.home-rhythm>.vg-edge{left:auto;right:0;top:0;bottom:auto;width:90px;height:70px;opacity:.16}
 body[data-page=billing] .billing-pricing-head h1{font-size:clamp(31px,8vw,40px);letter-spacing:-.8px}
 body[data-page=billing] .billing-pricing-title-line{white-space:normal}
}
.vg-workspace{position:absolute;z-index:-1;right:125px;top:20px;width:280px;height:140px;opacity:.55;mask-image:linear-gradient(90deg,transparent,#000 55%)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-audio-idle,.pg-upload-selection,.pg-card textarea,.pg-settings textarea,.pg-voice-select summary){background:var(--skin-soft,#0b1c27);border-color:var(--skin-line,#314d5d);color:var(--skin-ink,#dceaf2)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-settings>summary,.pg-setting-label,.pg-settings label,.pg-live .trial-result-header h2,.pg-live .trial-result-header [data-trial-status],.pg-live .trial-empty,.pg-selected-file){color:var(--skin-muted,#a6bcc9)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) :is(.pg-settings,.pg-studio-footer,.trial-enhancement+.trial-enhancement){border-color:var(--skin-line,#314d5d)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-tabs button{background:var(--skin-panel,#172e3c);border-color:var(--skin-line,#314d5d);color:var(--skin-ink,#b7cdd9)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .pg-tabs button[aria-pressed=true]{background:var(--skin-soft,#23414d);color:var(--pg-accent);border-color:var(--skin-line,#5c8795)}
:is(body[data-page=transcribe],.hc-home-landing .hc-live-panel) .audio-upload-play:hover{background:var(--skin-soft,#213c4b)}
@media(max-width:800px){.vg-workspace{display:none}}

body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) :is(.fh-product-panel,.fh-mobile-product-list) [data-product-name]{color:var(--skin-ink,#e5eff3)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) .fh-product-panel-label{color:var(--skin-muted,#9bb5c5)}
body:is([data-page=home],:has([data-product-page]),[data-page=transcribe],[data-page=docs],[data-page=billing],[data-page=benchmark]) :is(.fh-product-panel,.fh-mobile-product-list) a:is(:hover,:focus-visible,[aria-current=page]) [data-product-name]{color:var(--skin-cyan,#8de4db)}

/* Keep text and demonstration in a balanced frame on wide monitors. */
@media(min-width:1600px){#app{--fh-page-width:clamp(1520px,calc(100vw - 160px),2240px)}}

#app :is(.fh-header-inner,.fh-main){width:100%;margin-inline:auto;box-sizing:border-box}
body:has([data-product-page]) .fh-main.marketing{overflow-x:clip}
/* Voice-enabled objects sit in reserved edge bands, away from working controls. */
.voice-world{position:absolute;width:140px;aspect-ratio:200/145;color:var(--skin-muted,#7ba6b2);opacity:.46;pointer-events:none;user-select:none;z-index:0}
.voice-world svg{display:block;width:100%;height:100%;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round;overflow:visible}
.vw-surface{fill:var(--skin-muted,#73c7cb);fill-opacity:.07;stroke:none}
.vw-faint{opacity:.4}.vw-light,.vw-detail{color:var(--skin-ink,#a6f2e6)}
.vw-light,.vw-detail{filter:drop-shadow(0 0 3px #8de4db44)}
.vw-stars{color:var(--skin-ink,#b6c7ee);fill:currentColor;fill-opacity:.6}
.vw-stars circle,.vw-stars path{transform-box:fill-box;transform-origin:center}
.vw-eyes,.vw-meter path{transform-box:fill-box;transform-origin:center}
.vw-aperture{transform-origin:107px 88px}
.fh-home-film-hero>.vw-stars{top:20%;left:max(12px,calc(var(--home-edge) - 120px));width:100px;opacity:.26}
.home-developer,.fp-story{position:relative;isolation:isolate}
.hc-showcase~.home-developer{padding-bottom:112px}
.home-developer>.vw-robot{left:4px;bottom:0;width:125px;transform:rotate(-5deg)}
.home-developer>.vw-glasses{right:0;bottom:0;width:140px;transform:rotate(7deg)}
.home-rhythm{padding-top:100px;padding-bottom:112px}
.home-rhythm>.vw-vr{right:0;top:0;width:120px;transform:rotate(5deg)}
.home-rhythm>.vw-car{left:0;bottom:2px;width:140px}
.fh-footer>.vw-camera{right:max(20px,calc((100vw - var(--fh-page-width,1280px))/2 + 32px));top:4px;width:140px;transform:rotate(6deg)}
.fh-footer>.vw-stars{left:10px;bottom:110px;width:90px;opacity:.24}
.fh-footer-main>div:first-child{padding-right:144px;min-height:90px}
.fp-story{padding-bottom:112px}
.fp-story>.voice-world{left:0;bottom:2px;width:125px}
.pg-page-head{padding-right:160px;min-height:150px;position:relative}
.pg-page-head>.fh-text-link{position:absolute;right:0;top:10px}
.pg-page-head>.vw-recording{right:8px;top:42px;width:115px;transform:rotate(5deg)}
.dc-toc>.vw-robot{position:relative;width:100px;max-width:100%;margin:34px auto 0;opacity:.35}
@media(prefers-reduced-motion:no-preference){
 .vw-object{transform-origin:center;animation:voice-object-float 9s ease-in-out infinite alternate}
 .voice-world:not(.vw-stars) .vw-light{animation:voice-device-glow 3.5s ease-in-out infinite alternate}
 .vw-stars circle,.vw-stars path{animation:voice-star-glow 5s ease-in-out infinite alternate}
 .vw-stars :nth-child(2n){animation-delay:-2s}.vw-stars :nth-child(3n){animation-delay:-3.5s}
 .vw-lens-scan{animation:voice-lens-scan 4.8s ease-in-out infinite}
 .vw-eyes{animation:voice-eye-blink 5s ease-in-out infinite}
 .vw-radar{animation:voice-radar 3s ease-out infinite}
 .vw-meter path{animation:voice-meter 1.8s ease-in-out infinite alternate}
 .vw-meter path:nth-child(2n){animation-delay:-.7s}.vw-meter path:nth-child(3n){animation-delay:-1.2s}
 .vw-aperture{animation:voice-aperture 8s ease-in-out infinite}
 @keyframes voice-object-float{from{transform:perspective(400px) rotateY(-9deg) rotateX(3deg)}to{transform:perspective(400px) translateY(-5px) rotateY(9deg) rotateX(-3deg)}}
 @keyframes voice-device-glow{to{opacity:.45;filter:drop-shadow(0 0 7px #8de4db88)}}
 @keyframes voice-star-glow{to{opacity:.35;transform:scale(.8)}}
 @keyframes voice-lens-scan{0%,100%{transform:translateY(-6px);opacity:0}25%,65%{opacity:.9}85%{transform:translateY(8px);opacity:0}}
 @keyframes voice-eye-blink{0%,43%,49%,100%{transform:scaleY(1)}46%{transform:scaleY(.12)}}
 @keyframes voice-radar{from{transform:translateY(2px);opacity:.9}to{transform:translateY(-9px);opacity:0}}
 @keyframes voice-meter{to{transform:scaleY(.3)}}
 @keyframes voice-aperture{0%,35%,100%{transform:rotate(0) scale(1)}55%,70%{transform:rotate(60deg) scale(.7)}}
}
@media(max-width:1100px){
 .fh-home-film-hero>.vw-stars,.fh-footer>.vw-stars{display:none}
 .home-developer>.vw-robot{width:115px}.home-developer>.vw-glasses{width:130px}
 .home-rhythm>.vw-vr{width:110px}.home-rhythm>.vw-car{width:130px}
 .pg-page-head{padding-right:140px}.pg-page-head>.vw-recording{width:105px}
}
@media(max-width:760px){
 .fh-home-film-hero>.vw-stars{display:none}
 .hc-showcase~.home-developer{padding-bottom:94px}
 .home-developer>.vw-robot{left:0;width:90px}.home-developer>.vw-glasses{right:0;width:100px}
 .home-rhythm{padding-top:84px;padding-bottom:94px}
 .home-rhythm>.vw-vr{width:90px;top:0}
 .home-rhythm>.vw-car{width:100px;bottom:0}
 .fh-footer>.vw-camera{right:12px;top:6px;width:100px}
 .fh-footer-main>div:first-child{padding-right:106px;min-height:88px}
 .fh-footer>.vw-stars{display:none}
 .pg-page-head{padding-right:0;padding-bottom:80px;min-height:0}
 .pg-page-head>.fh-text-link{position:static}
 .pg-page-head>.vw-recording{right:0;top:auto;bottom:0;width:95px}
 .fp-story{padding-bottom:94px}.fp-story>.voice-world{width:95px}
}

/* Resources, API references, tables and example controls share the dark reading theme. */
body[data-page=docs] .fh-main.documentation{background:transparent}
body[data-page=docs] :is(.dc-article,.fh-start-guide){color:var(--skin-ink,#cadce7)}
body[data-page=docs] :is(.dc-article h1,.dc-article h2,.dc-article h3,.dc-article h4,.fh-start-guide h1,.fh-start-guide h2,.fh-start-guide h3){color:var(--skin-ink,#e5eff3)}
body[data-page=docs] :is(.dc-navigation>summary,.dc-nav h2,.dc-extra>summary){color:var(--skin-ink,#d2e4ed);border-color:var(--skin-line,#2d4655)}
body[data-page=docs] :is(.dc-nav a,#docs-search-results a){color:var(--skin-muted,#b5cad6)}
body[data-page=docs] :is(.dc-nav a:hover,#docs-search-results a:hover){background:var(--skin-panel,#142e3b);color:var(--skin-ink,#ecf6fa)}
body[data-page=docs] :is(.dc-nav a[aria-current],#docs-search-results a[aria-current]){background:var(--skin-panel,#17383e);color:var(--skin-cyan,#a7eee4);box-shadow:inset 3px 0 #8de4db}
body[data-page=docs] #docs-search{background:var(--skin-panel,#10232f);border-color:var(--skin-line,#385361);color:var(--skin-ink,#e2eff5)}
body[data-page=docs] #docs-search::placeholder{color:var(--skin-muted,#8da9b9)}
body[data-page=docs] :is(.dc-article a,.fh-start-guide a:not(.fh-button)){color:var(--skin-ink,#9ecaff)}
body[data-page=docs] .dc-article h2{border-color:var(--skin-line,#2d4655)}
body[data-page=docs] :is(.dc-lead,.dc-article [data-doc-facts],.dc-article .dc-note){color:var(--skin-muted,#a6bcc9);border-color:var(--skin-line,#4c6c7b)}
body[data-page=docs] .dc-article [data-doc-facts] strong{color:var(--skin-ink,#dceaf2)}
body[data-page=docs] .dc-table{background:var(--skin-panel,#0c1f2a);border-color:var(--skin-line,#304b5b);border-radius:8px}
body[data-page=docs] .dc-table th{background:var(--skin-panel,#172e3c);color:var(--skin-ink,#d9e8f1)}
body[data-page=docs] .dc-table tr:nth-child(even) td{background:var(--skin-panel,#102530)}
body[data-page=docs] .dc-table td{color:var(--skin-ink,#c3d5e0)}
body[data-page=docs] .dc-article :not(pre)>code{background:var(--skin-soft,#1b3442);color:var(--skin-ink,#b1e6e0)}
body[data-page=docs] .dc-code{background:var(--skin-panel,#0c1d28);border-color:var(--skin-line,#304d60)}
body[data-page=docs] .dc-code pre{color:var(--skin-ink,#d6e8f2)}
body[data-page=docs] .dc-code code{background:none;color:inherit}
body[data-page=docs] :is(.dc-article [data-code-tab],.dc-operation-tabs button,.dc-transport-marker a){background:var(--skin-panel,#112936);border:1px solid var(--skin-line,#314f60);color:var(--skin-ink,#b7cedc)}
body[data-page=docs] :is(.dc-article [data-code-tab]:hover,.dc-operation-tabs button:hover,.dc-transport-marker a:hover){background:var(--skin-soft,#1c3949);color:var(--skin-ink,#e4f2f8)}
body[data-page=docs] :is(.dc-article [data-code-tab][aria-pressed=true],.dc-operation-tabs button[aria-selected=true],.dc-transport-marker a.is-active){background:var(--skin-soft,#234c54);color:var(--skin-ink,#baf6ec);border-color:var(--skin-line,#508b90);box-shadow:none}
body[data-page=docs] #model-feature-parameters{background:var(--skin-panel,#102e3a);border-color:var(--skin-line,#37616e);border-left-color:var(--skin-cyan,#8de4db)}
body[data-page=docs] #model-feature-parameters h3{color:var(--skin-cyan,#a7eee4)}
body[data-page=docs] #model-feature-parameters .dc-table{background:var(--skin-panel,#0c1f2a)}
body[data-page=docs] .dc-table tr.dc-feature-row td{background:var(--skin-soft,#153943);color:var(--skin-ink,#b8eee7)}
body[data-page=docs] .dc-table tr.dc-feature-row td:first-child{border-left-color:var(--skin-cyan,#8de4db)}
body[data-page=docs] .dc-toc h2{color:var(--skin-ink,#c1d5e0)}
body[data-page=docs] .dc-toc a{color:var(--skin-muted,#92afc0)}
body[data-page=docs] .dc-toc a:hover{color:var(--skin-cyan,#a7eee4)}
body[data-page=docs] .fh-start-options>a{background:var(--skin-panel,#10232f);border-color:var(--skin-line,#304b5b);color:var(--skin-ink,#deebf3)}
body[data-page=docs] .fh-start-options>a:hover{background:var(--skin-soft,#173441);border-color:var(--skin-line,#56858e)}
body[data-page=docs] .fh-start-options span{color:var(--skin-cyan,#8de4db)}
body[data-page=docs] :is(.fh-language-trigger,.fh-language-menu){background:var(--skin-panel,#10232f);color:var(--skin-ink,#c9dce8);border-color:var(--skin-line,#395465)}
body[data-page=docs] .fh-language-trigger:hover{background:var(--skin-soft,#193441);border-color:#65909b}
body[data-page=docs] .fh-language-option{color:var(--skin-ink,#c9dce8)}
body[data-page=docs] .fh-language-option:hover,body[data-page=docs] .fh-language-option[aria-selected=true]{background:var(--skin-soft,#20404d)}
body[data-page=docs] :is(a,button,input,summary):focus-visible{outline:2px solid var(--skin-cyan,#8de4db);outline-offset:3px}

/* Reading rhythm: a centered frame, flexible article column and unbroken API tokens. */
@media(min-width:1201px){.dc-layout{grid-template-columns:224px minmax(0,1fr) 168px}}
body[data-page=docs] .dc-layout{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body[data-page=docs] .dc-article{font-size:16px;line-height:1.8;color:var(--skin-ink,#ccd7df);font-weight:400}
body[data-page=docs] .dc-article :is(h1,h2,h3,h4){font-family:inherit;font-weight:600;letter-spacing:-.3px}
body[data-page=docs] .dc-article h1{font-size:32px;line-height:1.3}
body[data-page=docs] .dc-article h2{font-size:23px;margin-top:44px;padding-top:28px;border-top-width:1px}
body[data-page=docs] .dc-article h3{font-size:18px}
body[data-page=docs] .dc-article>p,body[data-page=docs] .dc-article>ul{max-width:72ch}
body[data-page=docs] .dc-article .dc-lead{font-size:16px;line-height:1.8;color:var(--skin-muted,#b7c7d2)}
body[data-page=docs] :is(.dc-nav a,#docs-search-results a,#docs-search){font-size:13px;font-weight:400}
body[data-page=docs] .dc-nav a[aria-current]{font-weight:600}
body[data-page=docs] :is(.dc-nav h2,.dc-toc h2){font-size:12px}
body[data-page=docs] .dc-toc a{font-size:12px;line-height:1.6;color:var(--skin-muted,#a1b7c5)}
body[data-page=docs] .dc-table table{font-size:13px;line-height:1.75}
body[data-page=docs] .dc-table :is(td,th){padding:13px 14px}
body[data-page=docs] .dc-table td{color:var(--skin-ink,#ccd8e1)}
body[data-page=docs] .dc-article code{font-size:13px}
body[data-page=docs] .dc-table code{white-space:nowrap;overflow-wrap:normal;word-break:normal;background:transparent;padding:0}
body[data-page=docs] .dc-article :not(pre)>code{background:var(--skin-soft,#19313e);color:var(--skin-ink,#b5dedb)}
body[data-page=docs] .dc-table :not(pre)>code{background:transparent}
body[data-page=docs] .dc-code{background:var(--skin-panel,#101f2b)}
body[data-page=docs] .dc-code :is(pre,code){font-size:13px;line-height:1.85}
body[data-page=docs] .dc-toc .vw-object{animation:none}
body[data-page=docs] .fh-docs-tools{margin-bottom:28px}
@media(max-width:800px){
 body[data-page=docs] .dc-article{font-size:15px}
 body[data-page=docs] .dc-article h1{font-size:27px}
 body[data-page=docs] .dc-article h2{font-size:21px}
 body[data-page=docs] .fh-docs-tools{padding-top:18px;margin-bottom:18px}
}

/* Expand the content and demo together on wide browsers; keep prose readable. */
@media(min-width:1600px){
 .fh-home-film-hero .fh-home-intro-inner h1{font-size:clamp(40px,2.5vw,54px);max-width:46%}
 .fh-home-film-hero .fh-home-intro-copy{font-size:16px;max-width:min(42%,640px)}
 .hc-home-landing .fm-stage{width:min(44vw,760px)}
 .fm-scene-heading h2{font-size:clamp(32px,2vw,40px)}
 .fm-voice strong{font-size:13px}.fm-voice>span>span{font-size:12px}
 .fm-result>p{font-size:25px}
 .hc-home-landing .hc-copy h2{font-size:clamp(34px,2vw,42px)}
 .hc-home-landing .hc-description{font-size:16px;max-width:700px}
 .hc-home-landing .hc-slide{padding:clamp(40px,3vw,64px);gap:clamp(48px,5vw,112px)}
 .hc-signal-art{max-width:680px;justify-self:center}
 .home-developer .home-developer-copy>p:not(.fh-kicker),.home-rhythm-copy>p:not(.fh-kicker){max-width:60ch;font-size:16px}
 .home-rhythm{gap:clamp(52px,6vw,140px)}
 .vg-rhythm{height:clamp(330px,20vw,430px)}
}

/* Interactive sample controls keep their contrast in every pointer/focus state. */
#app :is(.sample-transport,.sample-choices,.fm-mix-choice) button:is(:hover,:focus,:active){background:var(--skin-soft,#213945);color:var(--skin-ink,#edf7fa);border-color:var(--accent,var(--product-accent,var(--skin-cyan,#8de4db)));box-shadow:none}
#app .sample-transport button[aria-pressed=true]{background:var(--skin-soft,#203d48);color:var(--skin-ink,#ecffff);border-color:var(--accent,var(--product-accent,var(--skin-cyan,#8de4db)))}
#app .sample-transport input[type=range]{color-scheme:dark}
.hc-home-landing .hc-close{display:flex;width:auto;gap:6px;min-height:36px;padding:7px 12px;border:1px solid var(--skin-line,#456170);color:var(--skin-ink,#d4e8ef);font:500 12px var(--sans)}
.hc-home-landing .hc-live-panel[hidden]{display:none!important}
.hc-signal-art[data-playing=true] .hs-output{stroke-width:calc(2px + var(--sample-energy,0)*2px);filter:drop-shadow(0 0 4px currentColor)}
.hc-signal-art[data-playing=true] .hs-ribbon{stroke-width:calc(2px + var(--sample-energy,0)*2px)}
.hc-signal-art[data-playing=true] .hs-audio-block{fill-opacity:calc(.35 + var(--sample-energy,0)*.65)}

/* One fluid outer frame on every route, including Resources and API docs. */
#app{--fh-page-width:clamp(1280px,calc(84vw + 96px),1920px);--fh-page-gutter:clamp(24px,3.4vw,48px)}
@media(min-width:1201px){body[data-page=docs] .dc-layout{grid-template-columns:224px minmax(0,1fr) 190px;gap:clamp(32px,3vw,64px)}}
body[data-page=docs] .dc-article>p,body[data-page=docs] .dc-article>ul{max-width:76ch}
@media(max-width:800px){#app{--fh-page-gutter:26px}}
@media(max-width:600px){#app{--fh-page-gutter:20px}}

/* The first view is laid out by content, never clipped by a fixed hero height. */
@media(min-width:1101px){
 body[data-page=home] #app .fh-header-inner{min-height:68px;height:68px}
 .hc-home-landing>.hc-navigation{top:68px;padding-block:7px}
 .hc-home-landing .hc-tabs>button{min-height:40px}
 body[data-page=home] .hc-home-landing .fh-home-film-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(48px,5vw,112px);align-items:center;height:auto;min-height:0;padding-top:20px;padding-bottom:24px}
 body[data-page=home] .fh-home-film-hero .fh-home-intro-inner{padding-bottom:26px}
 body[data-page=home] .fh-home-film-hero .fh-home-intro-inner{grid-column:1;grid-row:1}
 body[data-page=home] .hc-home-landing .fm-stage{grid-column:2;grid-row:1}
 .fh-home-film-hero .fh-home-intro-inner h1{max-width:100%;font-size:clamp(35px,2.45vw,52px);line-height:1.15;text-wrap:pretty;letter-spacing:-1px}
 .fh-home-film-hero .fh-home-intro-copy{max-width:620px;font-size:14px;line-height:1.75;margin-top:22px}
 .fh-home-film-hero .fh-actions{margin-top:24px}
 .fh-hero-signal{width:100%;max-width:700px;height:110px;margin-top:22px}
 body[data-page=home] .hc-home-landing .fm-stage{position:relative;inset:auto;transform:none;width:100%;height:auto;min-height:484px;max-width:none}
 .fm-tabs{margin-bottom:12px;gap:16px}.fm-tabs>button{min-height:32px;padding:6px 0 10px;font-size:11px}
 .fm-scene-heading{margin-bottom:14px}.fm-scene-heading h2{font-size:28px;line-height:1.12}
 .fm-focus-panel .fm-flow{height:148px;margin-bottom:10px}
 .fm-voice{min-height:42px;padding:7px 10px;gap:9px;border-radius:10px}
 .fm-voice strong{font-size:11px;margin-bottom:2px}.fm-voice>span>span{font-size:10px;line-height:1.35}
 .fm-avatar{width:25px;height:25px;font-size:11px}
 .fm-engine{top:30px;width:84px;height:84px}.fm-engine-core{width:64px;height:64px;font-size:22px}.fm-engine>small{top:95px}
 .fm-result{min-height:90px;padding:12px 16px}.fm-result>p{font-size:20px;margin:7px 0 5px;min-height:28px}
 .fm-stage .sample-transport{margin-top:8px}.sample-transport button{min-height:34px;min-width:92px}
 .fm-mix-choice{margin:8px 0 0}.fm-mix-choice button{min-height:28px;padding:5px 10px}
 .fm-stage .fm-hint{margin-top:6px;font-size:9px}
 .fm-scan-card>p{font-size:19px;min-height:48px;margin:12px 0}.fm-scan-grid{height:36px}
 .fm-detection-result{min-height:98px;padding:12px 17px}.fm-detection-result h3{font-size:24px;margin:6px 0}
 .fm-emotion-source{padding:16px 18px 0}.fm-emotion-source>p{font-size:23px;min-height:45px;margin:16px 0 12px}.fm-emotion-cues{margin-bottom:15px}
 .fm-emotion-result{min-height:90px;padding-block:14px}.fm-emotion-result strong{font-size:25px;margin-top:7px}
 body[data-page=home] .fh-film-footer{bottom:15px;right:auto;width:calc((100% - var(--home-edge)*2 - clamp(48px,5vw,112px))/2);gap:12px}
 .fh-film-controls button{min-height:32px;font-size:11px;padding:6px 10px}
 .hc-home-landing .hc-track{margin-top:12px}
 .hc-home-landing .hc-slide{gap:clamp(32px,4vw,80px);padding:24px 32px}
 .hc-home-landing .hc-copy h2{font-size:clamp(27px,1.9vw,36px);line-height:1.2}
 .hc-home-landing .hc-description{font-size:14px;line-height:1.7;margin-top:14px;max-width:640px}
 .hc-home-landing .hc-entry{margin-top:18px}.hc-home-landing .hc-note{margin-top:10px}
 .hc-signal-art{max-width:620px}.hc-signal-art>svg,.hs-detect>svg{height:140px;max-height:140px}
 .hc-signal-art .sample-choices{margin:4px 0}.hc-signal-art .sample-choices button{min-height:28px;padding:5px 10px}
 .hc-signal-art .sample-caption{font-size:12px;min-height:0;margin:5px 0;line-height:1.5}
 .hc-signal-art .sample-transport{margin-top:6px}.hc-signal-art .sample-note{margin-top:5px;font-size:9px}
}
@media(min-width:1101px) and (min-height:1050px){
 .fh-hero-signal{height:145px}
 .hc-signal-art>svg,.hs-detect>svg{height:180px;max-height:180px}
 .hc-home-landing .hc-slide{padding-block:28px}
 body[data-page=home] .hc-home-landing .fh-home-film-hero{padding-block:28px 32px}
}
@media(min-width:761px) and (max-width:1100px){
 body[data-page=home] .hc-home-landing .fh-home-film-hero{height:auto;min-height:740px}
 .fh-home-film-hero .fh-home-intro-inner h1{font-size:34px}
 .fh-home-film-hero .fh-home-intro-copy{font-size:13px}
}
@media(max-width:760px){body[data-page=home] .hc-home-landing .fh-home-film-hero{height:auto;min-height:0}.fm-stage{height:auto;min-height:590px}.fm-stage .sample-transport{gap:7px}.sample-time{font-size:9px;min-width:60px}}
@media(min-width:1101px) and (max-height:1000px){
 body[data-page=home] .hc-home-landing .fh-home-film-hero{padding-top:12px;padding-bottom:12px}
 body[data-page=home] .hc-home-landing .fm-stage{min-height:456px}
 .fm-focus-panel .fm-flow{height:120px}
 .fm-voice{min-height:36px;padding:5px 9px}.fm-avatar{width:23px;height:23px}
 .fm-engine{top:20px;width:76px;height:76px}.fm-engine-core{width:58px;height:58px;font-size:21px}.fm-engine>small{top:86px}
 .hc-home-landing .hc-slide{padding-block:16px}
 .hc-signal-art>svg,.hs-detect>svg{height:110px;max-height:110px}
}
body[data-page=home] .hc-home-landing .fh-home-film-hero{overflow:clip}
/* Decorative full-bleed layers must not create a horizontal document scroll. */
body:has(#app){overflow-x:clip}
@media(min-width:1101px) and (max-height:1000px){
 body[data-page=home] .hc-home-landing .fh-home-film-hero{padding-block:10px}
 .hc-home-landing .hc-track{margin-top:8px}
 .hc-home-landing .hc-slide{padding-block:12px}
}

/* Resources and benchmark use the same frame and reading contrast. */
.fh-header .fh-nav .fh-resources-toggle{color:var(--skin-ink,#dce9ee);background:transparent}
.fh-header .fh-nav .fh-resources-toggle:is(:hover,:active){color:var(--skin-ink,#fff);background:var(--skin-hover,#ffffff12)}
.fh-resource-panel .fh-product-panel-card{background:var(--skin-panel,#10232f);border-color:var(--skin-line,#35515f)}
.fh-resource-menu-grid>a{color:var(--skin-ink,#dce9ee)}
.fh-resource-menu-grid>a:hover{background:var(--skin-soft,#213a48);color:var(--skin-ink,#fff)}
body[data-page=benchmark]{background:var(--skin-canvas,#07141e);color:var(--skin-ink,#e1edf2)}
fourhz-benchmark{--benchmark-page:var(--skin-canvas,#07141e);--benchmark-card:var(--skin-panel,#10232f);--benchmark-ink:var(--skin-ink,#e1edf2);--benchmark-muted:var(--skin-muted,#a9bdca);--benchmark-line:var(--skin-line,#314956);--benchmark-soft:var(--skin-panel,#18313e);--benchmark-blue:var(--skin-blue,#80b8ff)}

.fm-focus-panel .fm-scene-heading{flex-wrap:wrap;gap:8px 14px}
.fm-focus-panel .fm-scene-heading h2{font-size:clamp(22px,1.8vw,32px);white-space:nowrap}
.hc-home-landing .hs-target>svg{height:clamp(170px,15vw,215px);max-height:215px}
@media(max-width:380px){.fm-focus-panel .fm-scene-heading h2{font-size:20px;white-space:normal}}

/* Explicit input → 4Hz → selected person → voice and transcript. */
.fm-focus-panel .fm-flow{height:162px;margin-bottom:20px}
.fm-focus-panel .fm-voices{width:38%}
.fm-focus-panel .fm-voice{min-height:45px;padding:7px 9px;gap:7px}
.fm-focus-panel .fm-voice>span>span{font-size:10px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal}
.fm-focus-panel .fm-voice[aria-pressed=true],.fm-focus-panel .fm-voice:hover{transform:translateX(4px)!important}
.fm-focus-panel .fm-engine{left:52%;top:50%;width:66px;height:66px;transform:translate(-50%,-50%)}
.fm-focus-panel .fm-engine-core{width:52px;height:52px;font-size:20px}
.fm-target-person{position:absolute;left:70%;right:0;top:50%;transform:translateY(-50%);display:grid;justify-items:center;gap:5px;padding:12px 8px 8px;border:1px solid var(--accent);border-radius:16px;background:var(--skin-panel,#102a36);box-shadow:0 6px 24px color-mix(in srgb,var(--accent) 9%,transparent);color:var(--skin-ink,#e5eff3)}
.fm-target-kicker{font:600 12px/1.3 var(--sans);color:var(--accent)}
.fm-target-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--skin-panel,#10232f);font:600 19px var(--sans)}
.fm-target-person>strong{font:600 16px/1.3 var(--sans)}
.fm-target-wave{width:92px;height:19px;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round}
.fm-connectors .fm-filtered-link{stroke:var(--accent);stroke-width:1.5;opacity:.45}
.fm-connectors .fm-filtered-pulse{stroke:var(--accent);stroke-width:2;stroke-dasharray:8 9;animation:fm-stream 1.3s linear infinite}
.fm-selected-output{position:relative}
.fm-output-connector{position:absolute;right:15%;top:-20px;height:20px;border-left:1px solid var(--accent);opacity:.65}
.fm-stage[data-sample-playing=true] .fm-target-wave{animation:fm-voice-live .55s ease-in-out infinite alternate;transform-origin:center}
@keyframes fm-voice-live{to{transform:scaleY(.55);opacity:.65}}
@media(max-width:760px){
 .fm-focus-panel .fm-flow{height:180px}.fm-focus-panel .fm-voices{width:40%}
 .fm-focus-panel .fm-voice{min-height:51px;padding:6px;gap:5px}.fm-focus-panel .fm-voice .fm-avatar{width:21px;height:21px;font-size:10px}
 .fm-focus-panel .fm-voice>span>span{font-size:9px}.fm-focus-panel .fm-engine{left:54%;width:44px;height:44px}.fm-focus-panel .fm-engine-core{width:35px;height:35px;font-size:15px}
 .fm-target-person{left:72%;padding:10px 4px 6px;gap:5px;border-radius:12px}.fm-target-kicker{font-size:10px;text-align:center}.fm-target-person>strong{font-size:14px}.fm-target-avatar{width:32px;height:32px;font-size:16px}.fm-target-wave{width:64px}
}
@media(prefers-reduced-motion:reduce){.fm-connectors .fm-filtered-pulse,.fm-stage[data-sample-playing=true] .fm-target-wave{animation:none}}

.fm-target-person{font-family:var(--sans);cursor:pointer}
.fm-target-person:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.fm-target-person:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Anchor both headlines to the same row, regardless of the active demo's height. */
@media(min-width:1101px){
 body[data-page=home] .fh-home-film-hero .fh-home-intro-inner{align-self:start;padding-top:44px;padding-bottom:0}
 body[data-page=home] .hc-home-landing .fm-stage{align-self:start}
}
