/* Shared chrome: identical dimensions, controls and destinations on every page. */
:root { --site-header:94px; --site-gutter:clamp(24px,5.4vw,100px); }
body { --shell-bg:#091b17; --shell-text:#f0f2e9; --shell-muted:#a4b7ab; --shell-accent:#bcdcc5; --shell-line:rgba(182,211,191,.22); }
body[data-mode="pro"] { --shell-bg:#171610; --shell-text:#f4ede0; --shell-muted:#b8af9b; --shell-accent:#ddbe82; --shell-line:rgba(219,190,137,.25); }
.site-header, .site-header *, #resource-dialog, #resource-dialog * { box-sizing:border-box; }
.site-header.experience-header { position:sticky; top:0; inset:auto; z-index:50; width:100%; height:var(--site-header); min-height:var(--site-header); padding:0 var(--site-gutter); display:flex; align-items:center; justify-content:space-between; gap:24px; border:0; border-bottom:1px solid var(--shell-line); background:color-mix(in srgb,var(--shell-bg) 95%,transparent); backdrop-filter:blur(18px); color:var(--shell-text); font-family:"Segoe UI","Microsoft YaHei",sans-serif; letter-spacing:.025em; }
body[data-site-page="index"] .site-header { position:fixed; inset:0 0 auto; }
.site-header a { color:inherit; text-decoration:none; }
.site-brand { display:flex; align-items:center; gap:11px; flex:none; }
.site-brand img { display:block; width:34px; height:34px; border-radius:8px; }
.site-brand .wordmark { color:var(--shell-text); font-size:23px; line-height:1.1; font-weight:650; letter-spacing:-.06em; }
.site-brand .wordmark small { display:block; margin-top:7px; color:var(--shell-muted); font:7px "Consolas",monospace; letter-spacing:.22em; }
.site-modes { position:absolute; left:50%; transform:translateX(-50%); display:flex; align-items:center; padding:4px; border:1px solid var(--shell-line); border-radius:100px; gap:0; }
.site-modes a { display:flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 20px; border-radius:100px; color:var(--shell-muted); font-size:12px; white-space:nowrap; transition:background .3s,color .3s; }
.site-modes a::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.55; }
.site-modes a[aria-pressed="true"] { color:#132219; background:var(--shell-accent); font-weight:650; }
body[data-mode="pro"] .site-modes a[aria-pressed="true"] { color:#292319; }
.site-actions { display:flex; align-items:center; gap:23px; margin:0; color:var(--shell-muted); }
.site-actions button { font:inherit; letter-spacing:inherit; color:inherit; padding:0; background:none; border:0; cursor:pointer; }
.site-resources { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-size:12px!important; white-space:nowrap; }
.site-resources span { font-size:19px; font-weight:300; }
.site-resources .resource-text { font-size:12px; font-weight:400; }
.site-download { display:inline-flex; align-items:center; gap:18px; min-height:44px; font-size:12px; border-bottom:1px solid var(--shell-accent); color:var(--shell-text)!important; white-space:nowrap; }
.site-download[aria-current="page"] { color:var(--shell-accent)!important; }
.site-platform { position:relative; font-size:11px; }
.site-platform summary { display:flex; align-items:center; gap:9px; cursor:pointer; list-style:none; min-height:44px; }
.site-platform summary::-webkit-details-marker { display:none; }
.site-platform summary span { font-size:14px; }
.site-platform-menu { position:absolute; top:calc(100% + 12px); right:0; width:220px; padding:9px; background:var(--shell-bg); border:1px solid var(--shell-line); box-shadow:0 20px 50px #0005; }
.site-platform-menu a { display:block; padding:13px; font-size:13px; }
.site-platform-menu a small { display:block; margin-top:6px; font-size:11px; color:var(--shell-muted); }
.site-platform-menu a:hover { background:color-mix(in srgb,var(--shell-accent) 8%,transparent); }
.site-platform-menu a[aria-current] { color:var(--shell-accent); }
.site-header :focus-visible, #resource-dialog :focus-visible, .site-context :focus-visible { outline:2px solid var(--shell-accent); outline-offset:5px; }
.site-context { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 var(--site-gutter); min-height:61px; background:var(--shell-bg); border-bottom:1px solid var(--shell-line); color:var(--shell-muted); font:12px "Segoe UI","Microsoft YaHei",sans-serif; }
.site-context a { text-decoration:none; color:inherit; }
.site-back { display:flex; align-items:center; gap:12px; min-height:44px; white-space:nowrap; }
.site-back > span:last-child { color:var(--shell-text); }
.site-context nav { display:flex; gap:27px; align-items:center; }
.site-context nav a { padding:22px 0; border-bottom:1px solid transparent; white-space:nowrap; }
.site-context nav a[aria-current="page"] { color:var(--shell-accent); border-bottom-color:var(--shell-accent); }
body.has-site-dialog { overflow:hidden; }
#resource-dialog { color:var(--shell-text); background:var(--shell-bg); border:1px solid var(--shell-line); padding:0; width:min(610px,calc(100vw - 32px)); max-height:90dvh; overflow:auto; box-shadow:0 35px 100px #0008; font-family:"Segoe UI","Microsoft YaHei",sans-serif; }
#resource-dialog:not([open]) { display:none; }
#resource-dialog::backdrop { background:rgba(1,8,6,.8); backdrop-filter:blur(12px); }
#resource-dialog .dialog-topline { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 24px; border-bottom:1px solid var(--shell-line); color:var(--shell-muted); font:10px "Consolas",monospace; letter-spacing:.08em; }
#resource-dialog button { color:inherit; background:none; border:0; cursor:pointer; }
#resource-dialog .dialog-close { font:300 27px "Segoe UI",sans-serif; min-width:44px; min-height:44px; padding:0; }
#resource-dialog h2 { font:400 34px/1.4 "Songti SC","SimSun",serif; margin:0; padding:30px 40px 24px; color:var(--shell-text); letter-spacing:0; }
#resource-dialog .resource-links { padding:0 40px; }
#resource-dialog .resource-links a { display:flex; align-items:center; gap:20px; min-height:65px; padding:18px 0; border-top:1px solid var(--shell-line); color:var(--shell-text); text-decoration:none; }
#resource-dialog .resource-links a>span { font:10px "Consolas",monospace; color:var(--shell-accent); }
#resource-dialog .resource-links strong { font-size:15px; font-weight:400; }
#resource-dialog .resource-links i { font-style:normal; margin-left:auto; font-size:20px; color:var(--shell-accent); }
#resource-dialog .resource-links a[aria-current="page"] strong::after { content:"•"; margin-inline-start:14px; color:var(--shell-accent); font-size:12px; }
.resource-platforms { margin:7px 40px 0; padding:20px 0; display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--shell-line); font-size:12px; }
.resource-platforms a { color:var(--shell-accent); text-decoration:none; padding-block:8px; }
.resource-platforms span { color:var(--shell-muted); }
#resource-dialog .resource-bottom { display:flex; justify-content:space-between; gap:15px; padding:0 40px 28px; font-size:11px; color:var(--shell-muted); }
#resource-dialog .resource-bottom a { color:var(--shell-accent); text-decoration:none; }
.mac-edition { display:flex; align-items:center; gap:35px; padding:27px 0; margin-top:34px; border-block:1px solid var(--v3-line); }
.mac-edition .mac-mark { font:30px Georgia,serif; color:var(--shell-accent); }
.mac-edition h3 { color:var(--shell-text); font:400 17px "Segoe UI","Microsoft YaHei",sans-serif; margin:0; }
.mac-edition p { color:var(--shell-muted); font-size:13px; line-height:1.8; margin:8px 0 0; }
.mac-edition a { margin-left:auto; padding:14px 0; color:var(--shell-accent); font-size:13px; white-space:nowrap; }
body.doc-v3[data-mode="pro"], body.download-page[data-mode="pro"] { --v3-bg:#171610; --v3-line:rgba(219,190,137,.22); }
body.doc-v3 .hero, body.download-page .download-hero, .companion-footer { background:var(--shell-bg); }
body.doc-v3 .toc { top:calc(var(--site-header) + 28px); }
@media(max-height:800px) and (min-width:801px) { :root { --site-header:80px; } }
@media(max-width:1200px) and (min-width:801px) {
  :root { --site-gutter:40px; }
  .site-actions { gap:17px; }
  .site-brand .wordmark { font-size:21px; }
  .site-brand img { width:30px; height:30px; }
  .site-modes a { padding-inline:15px; }
  .site-platform { display:none; }
}
@media(max-width:800px) {
  :root { --site-header:125px; --site-gutter:24px; }
  .site-header.experience-header, body[data-site-page="index"] .site-header { position:sticky; top:0; padding-top:20px; align-items:flex-start; gap:12px; backdrop-filter:blur(18px); }
  /* Keep chrome in a stable layer while the experience switches long mobile scenes. */
  body[data-site-page="index"] { padding-top:var(--site-header); }
  body[data-site-page="index"] .site-header { position:fixed; inset:0 0 auto; }
  /* The decorative lake ripple extends past the hero. Clip it locally so it
     cannot widen the mobile visual viewport and move fixed navigation away. */
  body[data-site-page="index"] .scene-listen-hero { overflow:clip; }
  .site-brand { gap:9px; }
  .site-brand img { width:28px; height:28px; }
  .site-brand .wordmark { font-size:21px; }
  .site-brand .wordmark small { font-size:6px; margin-top:5px; letter-spacing:.18em; }
  .site-actions { margin-top:-6px; gap:15px; }
  .site-resources { gap:6px; font-size:11px!important; }
  .site-resources .resource-text { font-size:11px; }
  .site-resources > span:last-child { font-size:17px; }
  .site-download { font-size:11px; gap:9px; min-height:41px; }
  .site-download .download-prefix { display:none; }
  .site-platform { display:none; }
  /* Quiet text navigation: the touch area stays generous without a button box. */
  .site-modes { top:70px; left:var(--site-gutter); right:var(--site-gutter); transform:none; border:0; border-radius:0; padding:0; gap:clamp(12px,4vw,24px); background:transparent; box-shadow:none; }
  .site-modes a { position:relative; flex:1 1 0; min-width:0; min-height:44px; padding:0 2px 8px; border:0; border-radius:0; background:transparent; color:var(--shell-muted); font-size:13px; font-weight:400; line-height:1.25; letter-spacing:0; white-space:normal; overflow-wrap:anywhere; text-wrap:balance; text-align:center; transition:color .18s ease; }
  .site-modes a::before { content:none; display:none; }
  .site-modes a::after { content:""; position:absolute; left:calc(50% - 12px); bottom:0; width:24px; height:1px; background:var(--shell-accent); opacity:0; transform:scaleX(.35); transform-origin:center; transition:opacity .18s ease,transform .18s ease; pointer-events:none; }
  .site-modes a[aria-pressed="true"], body[data-mode="pro"] .site-modes a[aria-pressed="true"] { color:var(--shell-accent); background:transparent; font-weight:500; }
  .site-modes a[aria-pressed="true"]::after { opacity:1; transform:scaleX(1); }
  .site-context { display:block; padding-top:10px; }
  .site-context nav { overflow:auto; gap:25px; scrollbar-width:none; }
  .site-context nav a { padding-block:14px; }
  .site-back { font-size:11px; }
  body.doc-v3 .mobile-toc { top:calc(var(--site-header) + 10px); }
  #resource-dialog h2 { padding:25px 24px 20px; font-size:27px; }
  #resource-dialog .resource-links { padding-inline:24px; }
  #resource-dialog .dialog-topline { padding:8px 15px; }
  .resource-platforms { margin-inline:24px; padding-block:12px; }
  #resource-dialog .resource-bottom { padding:6px 24px 24px; font-size:10px; }
  .mac-edition { flex-wrap:wrap; gap:16px; }
  .mac-edition .mac-mark { display:none; }
  .mac-edition a { margin-left:0; }
}
@media(max-width:380px) { :root { --site-gutter:20px; } .site-brand .wordmark{font-size:20px;} .site-actions{gap:12px;} .site-resources .resource-text{font-size:10px;} }
@media(prefers-reduced-motion:reduce) { .site-modes a, .site-modes a::after { transition:none; } }
html:not(.js) body[data-site-page="index"] { padding-top:0; }
html:not(.js) body[data-site-page="index"] .site-header { position:relative; inset:auto; }
@media print { .site-header, .site-context, #resource-dialog, .mac-edition { display:none!important; } }

/* Compact, native language navigation; technical notation retains its order. */
.site-language { position:relative; flex:none; font-size:11px; }
.site-language summary { display:flex; align-items:center; justify-content:center; gap:6px; min-width:42px; min-height:44px; cursor:pointer; list-style:none; }
.site-language summary::-webkit-details-marker { display:none; }
.language-short { font:11px/1 "Segoe UI",sans-serif; letter-spacing:.06em; }
.site-language-menu { position:absolute; top:calc(100% + 11px); inset-inline-end:0; width:174px; padding:8px; border:1px solid var(--shell-line); background:var(--shell-bg); box-shadow:0 20px 50px #0006; display:grid; z-index:60; }
.site-language-menu a { display:flex; align-items:center; justify-content:flex-start; min-height:40px; padding:8px 12px; font-size:13px; }
.site-language-menu a:hover { background:color-mix(in srgb,var(--shell-accent) 8%,transparent); }
.site-language-menu a[aria-current] { color:var(--shell-accent); background:color-mix(in srgb,var(--shell-accent) 10%,transparent); }
.site-language:not([open]) .site-language-menu { display:none; }
.release-update { margin:18px 0 0; padding-inline-start:13px; border-inline-start:1px solid var(--shell-accent); color:var(--shell-muted); font-size:12px; line-height:1.85; }
.release-access { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:22px; padding-top:16px; border-top:1px solid var(--shell-line); font-size:12px; color:var(--shell-muted); }
.release-access code { display:inline-flex; align-items:center; min-height:44px; padding:0 14px; background:color-mix(in srgb,var(--shell-accent) 7%,transparent); color:var(--shell-text); font:15px/1 "Consolas",monospace; letter-spacing:.14em; }
.release-access button.copy-button { min-height:44px; padding:0 15px; border:1px solid var(--shell-line); border-radius:0; color:var(--shell-accent); background:transparent; font-size:12px; }
.release-access button.copy-button:hover { background:color-mix(in srgb,var(--shell-accent) 7%,transparent); }
[data-preset-rate],[data-preset-filter],.instrument-label,.instrument-topline,.signal-caption,.signal-baseline,.network-route,.eyebrow,.figure-topline,.preset-bank button b,[data-code] { direction:ltr; unicode-bidi:isolate; }
html:not([lang^="zh"]):not([lang="ja"]):not([dir="rtl"]) body { --serif:Georgia,"Times New Roman",serif; }
html:not([lang^="zh"]) .hero-editorial h1 { font-size:clamp(46px,5.2vw,82px); letter-spacing:-.04em; }
html:not([lang^="zh"]) .console-copy h2 { font-size:clamp(33px,3.5vw,56px); }
html:not([lang^="zh"]):not([lang="ja"]):not([dir="rtl"]) #resource-dialog h2 { font-family:Georgia,"Times New Roman",serif; }
html:not([lang^="zh"]) .preset-bank button>span { white-space:normal; line-height:1.45; }
html:not([lang^="zh"]) .preset-bank { grid-template-columns:repeat(4,minmax(0,1fr)); }
html:not([lang^="zh"]) .preset-bank button { min-width:0; }
html:not([lang^="zh"]) .preset-bank button>span { overflow-wrap:anywhere; hyphens:auto; }
html:not([lang^="zh"]) .preset-details dd { overflow-wrap:anywhere; }
html:not([lang^="zh"]) .listening-style-selector button { min-width:0; }
html:not([lang^="zh"]) .listening-style-selector button>span { max-width:100%; overflow-wrap:anywhere; hyphens:auto; letter-spacing:0; }
html:not([lang^="zh"]) .network-route>div { min-width:0; flex:1; overflow-wrap:anywhere; }
html:not([lang^="zh"]) .network-route>i { flex:0 0 30px; }
/* Localized 1340 × 880 captures: keep taller translated controls in view. */
html:not([lang^="zh"]) .style-window-crop { aspect-ratio:560/440; }
html:not([lang^="zh"]) .style-window-crop img { left:-69.642857%; top:-50%; width:239.285714%; }
html:not([lang^="zh"]) .workbench-shot { aspect-ratio:1036/440; }
html:not([lang^="zh"]) .workbench-shot img { left:-23.552124%; top:-90.909091%; width:129.343629%; }
html[dir="rtl"] body { --serif:"Segoe UI",Tahoma,sans-serif; letter-spacing:0; }
html[dir="rtl"] .hero-editorial h1,html[dir="rtl"] h2 { letter-spacing:0; }
html[dir="rtl"] .site-brand .wordmark { direction:ltr; }
html[dir="rtl"] .site-platform-menu { right:auto; left:0; }
html[dir="rtl"] #resource-dialog .resource-links i { margin-left:0; margin-right:auto; }
html[dir="rtl"] .mac-edition a { margin-left:0; margin-right:auto; }
html[dir="rtl"] .hero-side-note { text-align:right; }
html[dir="rtl"] .figure-topline,html[dir="rtl"] .dialog-topline,html[dir="rtl"] .gallery-tabs button { letter-spacing:0; }
html[dir="rtl"] #resource-dialog h2 { font-family:"Segoe UI",Tahoma,sans-serif; }
html[dir="rtl"] .preset-details,.workbench-use-case { min-width:0; }
html[dir="rtl"] .preset-bank button,html[dir="rtl"] .gallery-tabs button,html[dir="rtl"] .workbench-toolbox button { text-align:right; }
html[dir="rtl"] .preset-bank button i { right:auto; left:11px; }
html[dir="rtl"] .listening-style-selector button { text-align:right; border-left:0; border-right:1px solid var(--line-strong); padding-inline:14px 4px; }
html[dir="rtl"] .listening-style-selector button:before { left:auto; right:-1px; }
html[dir="rtl"] .workbench-use-case { border-left:0; border-right:1px solid var(--line-strong); padding-inline:24px 0; }
html[dir="rtl"] .workbench-use-case:before { left:auto; right:-1px; }
/* The Arabic application mirrors its sidebar; mirror the unchanged crop too. */
html[dir="rtl"] .workbench-shot img { left:auto; right:-23.552124%; }
@media (max-width:1200px) and (min-width:801px) {
  .site-actions { gap:12px; }
  .site-resources .resource-text { display:none; }
  .site-resources { min-width:28px; justify-content:center; }
}
@media (max-width:1050px) and (min-width:801px) {
  .site-header.experience-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; }
  .site-modes { position:static; transform:none; justify-self:center; }
  .site-modes a { font-size:11px; padding-inline:13px; }
  .site-download .download-prefix { display:none; }
}
@media (max-width:800px) {
  .site-actions { gap:9px; }
  .site-resources { min-width:28px; justify-content:center; }
  .site-resources .resource-text { display:none; }
  .site-language summary { min-width:38px; gap:4px; }
  .site-language-menu { width:168px; }
  .site-download { gap:7px; font-size:10px; }
  html:not([lang^="zh"]) .hero-editorial h1 { font-size:clamp(32px,8.1vw,52px); line-height:1.3; }
  html:not([lang^="zh"]) .section-copy h2,html:not([lang^="zh"]) .workbench-heading h2,html:not([lang^="zh"]) .path-heading h2 { font-size:clamp(29px,7.5vw,42px); }
  html:not([lang^="zh"]) .hero-actions { flex-wrap:wrap; gap:10px 20px; }
  html:not([lang^="zh"]) .evidence-copy .button-primary { max-width:100%; min-width:0; white-space:normal; gap:16px; padding-block:12px; line-height:1.5; }
  html:not([lang^="zh"]) .evidence-copy .button-primary > span { flex-shrink:0; }
  html:not([lang^="zh"]) .chapter-navigation { gap:7px; min-width:0; }
  html:not([lang^="zh"]) .chapter-navigation button { flex:1; min-width:0; gap:4px; font-size:8.5px; }
  html:not([lang^="zh"]) .chapter-navigation button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  html:not([lang^="zh"]) .chapter-navigation button i { flex-shrink:0; }
  html[dir="rtl"] .mac-edition a { margin-right:0; }
}
@media (max-width:380px) {
  .site-header.experience-header { gap:8px; }
  .site-actions { gap:6px; }
  .site-language summary { min-width:34px; }
  .site-brand { gap:7px; }
  .site-brand .wordmark { font-size:19px; }
}
