:root{--ink:#17332f;--muted:#6a7d76;--line:#d8e3db;--paper:#f7f8f2;--white:#fff;--green:#245f4b;--accent:#c9e27b;--blue:#1e63c6;--amber:#ac7228;font-family:SimSun,"宋体","Songti SC",serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}h1,h2,h3,b,strong,button,.eyebrow,.brand,.stage-top,.panel-labels,.view-controls,.layers,.hint,.coordinate-note,.stage-watermark,.mouse-help,.runtime-state,.range-label,.check-row,.select-row,.research-pill,.model-id,.result-grid{font-family:SimHei,"黑体","Heiti SC",sans-serif}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7baf32;outline-offset:4px}button{border:1px solid var(--line);color:var(--ink);background:white;border-radius:4px}button:hover{background:#edf2e5}.skip{position:absolute;top:-60px;z-index:20;background:white;padding:12px}.skip:focus{top:0}[hidden]{display:none!important}
.topbar{height:84px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--paper);gap:25px}.brand{display:flex;align-items:center;gap:17px;text-decoration:none}.brand-mark{font-family:Georgia,serif;font-size:25px;letter-spacing:-3px;border-right:1px solid #baccc0;padding-right:20px}.brand b{display:block;font-size:25px;letter-spacing:3px}.brand small{font-size:10px;letter-spacing:2px;margin-top:5px;display:block}.page-name{font:15px SimHei,"黑体",sans-serif;letter-spacing:2px}.page-name span{display:block;font:9px Georgia,serif;letter-spacing:2px;color:var(--muted);margin-top:7px}.head-actions{display:flex;align-items:center;gap:23px;font-size:12px}.research-pill{border:1px solid #bdcdb7;color:#52733c;border-radius:20px;padding:7px 11px;white-space:nowrap}.text-button{background:none;border:0;padding:7px 0;border-bottom:1px solid currentColor;border-radius:0;font-size:12px}.home-link{text-decoration:none}.workspace{display:grid;grid-template-columns:278px minmax(0,1fr);height:min(780px,calc(100svh - 84px));min-height:580px;border-bottom:1px solid var(--line)}.tools{padding:30px 23px 20px;overflow-y:auto;scrollbar-width:thin;background:#fafbf6;border-right:1px solid var(--line)}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:400;color:var(--muted);display:block}.tools-heading h1{font-size:22px;line-height:1.4;letter-spacing:-.5px;margin:13px 0}.tools-heading p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 25px}.tool-section{padding:19px 0;border-top:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-title h2{font-size:12px;margin:0}.section-title>span{font:10px Georgia,serif;color:#95a695}.mini-button{border:0;background:none;font-size:10px;padding:2px 4px;color:var(--muted)}.mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mode-buttons button{font-size:12px;padding:12px 6px;text-align:left}.mode-buttons button span{display:block;color:var(--muted);font:8px SimHei,"黑体",sans-serif;margin-top:7px}.mode-buttons button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.mode-buttons button[aria-pressed=true] span{color:#d3e1d5}.mode-buttons .compare-button{grid-column:1/-1;display:flex;justify-content:space-between;padding:10px}.mode-buttons .compare-button span{font-size:13px;margin:0}.hint{font-size:10px;line-height:1.75;color:var(--muted);margin:10px 0 0}.layers{display:flex;flex-direction:column;gap:7px;min-height:40px}.layer-row{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:11px;line-height:1.3;min-height:22px}.layer-row input{appearance:none;width:13px;height:13px;margin:0;border:1px solid #adbcae;border-radius:2px;flex-shrink:0}.layer-row input:checked{background:var(--green);border-color:var(--green);box-shadow:inset 0 0 0 2px #fff}.layer-swatch{width:17px;height:8px;flex-shrink:0;border-radius:1px}.layer-row.oes .layer-swatch{background:none!important;border:1.5px dashed currentColor}.layer-row em{margin-left:auto;font-size:8px;font-style:normal;color:var(--muted)}.check-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin:13px 0}.check-row input{accent-color:var(--green)}.range-label{display:flex;justify-content:space-between;font-size:11px;margin:17px 0 9px}input[type=range]{width:100%;height:4px;accent-color:var(--green);cursor:pointer;margin:6px 0}.select-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:18px;gap:8px}select{max-width:137px;font-size:10px;padding:6px 4px;background:#fff;border:1px solid var(--line);color:var(--ink)}.side-footer{border-top:1px solid var(--line);padding-top:18px}.side-footer b{font-size:11px}.side-footer p{font-size:10px;line-height:1.8;color:var(--muted)}.side-footer>span{font-size:11px;color:var(--green)}
.stage-shell{position:relative;overflow:hidden;background:#e8eee5;min-width:0}.stage{position:absolute;inset:0;touch-action:none}.stage canvas{display:block;width:100%;height:100%;outline:0}.stage-top{position:absolute;top:25px;left:28px;right:27px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.stage-kicker{display:flex;gap:7px;align-items:center;font-size:11px;letter-spacing:1px}.stage-kicker i{width:6px;height:6px;background:#4f8863;border-radius:50%}.model-id{font-size:9px;letter-spacing:1.5px;color:#7b8e7c}.panel-labels{position:absolute;top:57px;left:29px;right:29px;font-size:10px;display:flex;gap:20px;color:#5f796d;pointer-events:none}.panel-labels>span{flex:1}.stage-shell.compare .panel-labels>span:nth-child(2){padding-left:10px}.stage-shell.compare:after{content:"";position:absolute;left:50%;top:90px;bottom:65px;border-left:1px solid #b8cbb6;pointer-events:none}.view-controls{position:absolute;top:91px;right:25px;display:flex;box-shadow:0 2px 8px #17332f05}.view-controls button{border-radius:0;border-right:0;font-size:10px;padding:9px 12px;background:#fffffff0}.view-controls button:first-child{border-radius:4px 0 0 4px}.view-controls button:last-child{border-right:1px solid var(--line);border-radius:0 4px 4px 0}.view-controls button[aria-pressed=true]{background:#d4e2c7}.stage-watermark{position:absolute;right:26px;bottom:76px;display:flex;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}.stage-watermark span{font-size:14px;letter-spacing:3px;color:#355b4a88}.stage-watermark b{font-size:9px;font-weight:400;color:#657b68aa}.coordinate-note{position:absolute;left:28px;bottom:76px;font-size:9px;color:#667e6b;pointer-events:none}.coordinate-note span{display:block;margin-top:6px;letter-spacing:1px}.stage-bottom{position:absolute;bottom:20px;left:28px;right:25px;display:flex;justify-content:space-between;gap:10px;pointer-events:none;font-size:9px;color:#6f8670}.runtime-state{font-size:9px;white-space:nowrap}.loading{position:absolute;inset:0;background:#eaf0e7ef;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;font-size:11px;color:#72856d;z-index:4}.loading b{font-size:15px;color:var(--ink)}.loading-ring{width:32px;height:32px;border:1px solid #c5d4bf;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.load-error{position:absolute;left:8%;right:8%;top:25%;padding:30px;background:#fff;border:1px solid var(--line);z-index:5;font-size:12px;line-height:1.8}.load-error h2{font-size:18px}.load-error button{padding:8px 15px}.mobile-tools{display:none}.story-card{position:absolute;left:28px;top:104px;width:275px;padding:22px;background:#fafcf5f2;border:1px solid #cad8c4;box-shadow:0 8px 35px #2643320d}.story-card h2{font-size:20px;line-height:1.5;margin:10px 0}.story-card p{font-size:12px;line-height:1.9;color:#5c7262}.story-card>div{display:flex;gap:10px}.story-card button{font-size:10px;padding:7px 6px;background:transparent;border:0;border-bottom:1px solid #b7c8af}.story-card #story-close{margin-left:auto;color:var(--muted)}
.experience-bar{display:flex;align-items:center;justify-content:space-between;padding:23px 34px;gap:20px;background:#f0f3e9;border-bottom:1px solid var(--line)}.experience-bar>div:first-child{display:flex;gap:23px;align-items:center}.experience-bar b{font-size:15px}.experience-actions{display:flex;gap:9px}.experience-actions button{padding:12px 18px;font-size:12px;min-width:140px;display:flex;gap:16px;justify-content:space-between;align-items:center}.primary-button{background:var(--green);color:#fff;border-color:var(--green);padding:12px 18px;font-size:12px}.primary-button:hover{background:#164b39}.experience-actions button[aria-expanded=true]{background:#d9e5c9;border-color:#b4c6a1}.experiment{display:grid;grid-template-columns:1.1fr .8fr 1.5fr;gap:35px;padding:40px 34px 22px;border-bottom:1px solid var(--line);background:#fff}.experiment h2,.profile-section h2{font-size:23px;margin:13px 0}.experiment-heading p,.profile-section p{font-size:12px;color:var(--muted);line-height:1.9;max-width:360px}.height-control{padding-top:24px}.height-control>label{display:flex;justify-content:space-between;font:12px SimHei,"黑体",sans-serif;margin-bottom:15px}.height-control output{font-size:22px}.range-ends{display:flex;justify-content:space-between;font:9px Georgia,serif;color:var(--muted);margin-top:7px}.height-control button{margin-top:15px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding-top:20px}.result-grid>div{border-left:1px solid var(--line);padding-left:18px}.result-grid span{font-size:10px;color:var(--muted);display:block;line-height:1.8}.result-grid b{display:block;font:25px Georgia,serif;margin:12px 0}.result-grid small{font-size:9px;line-height:1.9;display:block}.result-grid small.exceeded{color:#b13527}.result-grid .oes-result{border-left-style:dashed}.experiment-foot{grid-column:1/-1;font-size:10px;color:var(--muted);margin:0;line-height:1.8}.profile-section{display:grid;grid-template-columns:280px 1fr;gap:45px;padding:38px 34px;background:#fff;border-bottom:1px solid var(--line)}.chart-wrap svg{width:100%;height:auto;display:block;overflow:visible}.chart-legend{display:flex;gap:20px;justify-content:center;font:10px SimHei,"黑体",sans-serif;flex-wrap:wrap}.chart-legend span:before{content:"";display:inline-block;width:18px;height:2px;background:var(--blue);margin-right:6px;vertical-align:middle}.chart-legend .legend-ofs:before{background:#27825c}.chart-legend .legend-oes:before{background:#b18c27}.chart-legend .legend-terrain:before{background:#b6b7a3}.reading-section{padding:65px 34px 70px;display:grid;grid-template-columns:300px 1fr;gap:55px}.reading-section h2{font-size:29px;line-height:1.65;margin:18px 0 0}.reading-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;padding-top:8px}.reading-grid article{border-top:1px solid #a7bba2;padding-top:18px}.reading-grid article>span{font:10px SimHei,"黑体",sans-serif;color:var(--muted)}.reading-grid h3{font-size:16px;margin:20px 0 12px;line-height:1.5}.reading-grid p{font-size:12px;line-height:2;color:var(--muted)}.footer{display:flex;gap:30px;align-items:center;padding:28px 34px;background:#e8edde;border-top:1px solid var(--line)}.footer>div{flex:1}.footer b{font-size:11px}.footer p{font-size:10px;color:#64765c;line-height:1.8;max-width:720px;margin:6px 0 0}.footer>a{font:11px SimHei,"黑体",sans-serif;text-decoration:none}.footer .text-button{white-space:nowrap;font-size:10px}
dialog{border:1px solid #bbcdb4;border-radius:5px;background:var(--paper);max-width:640px;width:calc(100% - 32px);max-height:86svh;padding:30px 35px;color:var(--ink)}dialog::backdrop{background:#17332f66;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head button{border:0;background:none;font-size:25px;padding:0 5px}dialog h2{font-size:25px;margin:19px 0}dialog h3{font-size:14px;margin:25px 0 8px}dialog p{font-size:12px;line-height:2;color:#5d7064}dialog .license-note{font-size:10px}.dialog-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:23px;gap:20px}.dialog-bottom b{font-size:12px}.noscript{padding:20px}
@media(min-width:1700px){.workspace{grid-template-columns:305px minmax(0,1fr)}.tools{padding:34px 30px}.stage-top,.panel-labels{left:40px}.stage-bottom{left:40px}.reading-section,.experience-bar,.experiment,.profile-section,.footer{padding-left:55px;padding-right:55px}}
@media(max-width:1100px){.topbar{padding:0 22px}.page-name{display:none}.workspace{grid-template-columns:245px minmax(0,1fr)}.tools{padding:25px 17px}.model-id{display:none}.experience-bar{padding:20px 23px}.experience-bar>div:first-child{display:block}.experience-bar b{display:block;margin-top:8px;font-size:13px}.experience-actions button{padding:11px 12px;min-width:120px;font-size:11px}.reading-section{grid-template-columns:220px 1fr;gap:25px}.reading-section h2{font-size:24px}.reading-grid{gap:20px}.experiment{grid-template-columns:1fr 1fr}.result-grid{grid-column:1/-1;padding:0 0 10px}.profile-section{grid-template-columns:220px 1fr;gap:20px}.stage-watermark{right:18px}.coordinate-note{left:18px}.mouse-help{font-size:8px}.head-actions{gap:17px}}
@media(max-width:760px){.topbar{height:70px;padding:0 17px}.brand{gap:12px}.brand-mark{font-size:22px;padding-right:13px}.brand b{font-size:22px}.brand small{font-size:8px}.head-actions{gap:14px}.research-pill{display:none}.head-actions button,.home-link{font-size:10px}.workspace{display:block;min-height:0;height:70svh;max-height:720px;position:relative}.stage-shell{height:100%}.tools{position:absolute;left:0;bottom:0;top:0;width:265px;z-index:9;transform:translateX(-100%);transition:transform .25s;border-right:1px solid #bdcbb8;box-shadow:10px 0 20px #17332f12}.workspace.tools-open .tools{transform:translateX(0)}.tools-heading{padding-top:0}.stage-top{top:20px;left:19px;right:19px}.stage-kicker{font-size:10px}.panel-labels{top:47px;left:19px;right:15px;font-size:9px}.view-controls{top:77px;right:15px;left:15px;justify-content:center;box-shadow:none}.view-controls button{padding:8px 11px;font-size:10px}.stage-bottom{bottom:14px;left:18px;right:18px;font-size:8px}.mouse-help{display:none}.stage-watermark{bottom:60px;right:15px}.stage-watermark span{font-size:11px;letter-spacing:2px}.stage-watermark b{font-size:8px}.coordinate-note{left:18px;bottom:89px;font-size:8px;max-width:140px;line-height:1.6}.mobile-tools{display:block;position:absolute;left:16px;bottom:38px;font-size:10px;padding:10px 15px;background:#fffef3}.runtime-state{margin-left:auto;font-size:8px}.story-card{top:124px;left:17px;width:235px;padding:17px}.story-card h2{font-size:17px}.story-card p{font-size:11px}.experience-bar{display:block;padding:22px 17px}.experience-bar>div:first-child{display:flex;gap:16px;align-items:center}.experience-bar b{font-size:13px;margin:0}.experience-bar .eyebrow{font-size:8px;letter-spacing:1px}.experience-actions{margin-top:17px;gap:6px}.experience-actions button{flex:1;min-width:0;padding:12px 8px;font-size:10px;gap:4px}.experiment{padding:30px 20px 22px;gap:12px;grid-template-columns:1fr}.experiment h2,.profile-section h2{font-size:21px}.height-control{padding:10px 0 22px}.result-grid{gap:5px}.result-grid>div{padding-left:10px}.result-grid b{font-size:22px}.result-grid span{font-size:9px}.result-grid small{font-size:9px}.profile-section{padding:30px 20px;display:block}.chart-wrap{margin-top:20px}.chart-legend{gap:12px;font-size:9px}.reading-section{padding:42px 20px;display:block}.reading-section h2{font-size:26px}.reading-grid{grid-template-columns:1fr;gap:20px;margin-top:30px}.reading-grid article{padding-top:13px}.reading-grid h3{margin:10px 0}.reading-grid p{margin:0}.footer{padding:24px 20px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.footer>div{grid-column:1/-1}.footer .text-button{font-size:10px;justify-self:start}.footer>a{font-size:10px;justify-self:end}dialog{padding:22px}dialog h2{font-size:22px}.dialog-bottom b{font-size:11px}}
.drawer-close{display:none}
@media(max-width:760px){.drawer-close{display:block;position:absolute;right:10px;top:7px;background:transparent;border:0;font-size:22px;padding:3px 8px}.tools-heading{padding-top:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* 2026-11-14审核：剖面横轴说明与图例分开，避免重叠 */
.chart-legend{margin-top:16px}

/* Mobile WebViews: let the header grow and prevent isolated brand glyphs. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.topbar{height:auto;min-height:84px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
.brand{flex:0 0 auto;white-space:nowrap}
.brand-mark,.brand b,.brand small{white-space:nowrap;flex-shrink:0}
.head-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end;row-gap:3px}
.head-actions button,.home-link{white-space:nowrap;min-height:36px;display:inline-flex;align-items:center}
.tools{padding:0;display:flex;flex-direction:column;overflow:hidden;min-height:0}
.tools-scroll{padding:30px 23px 20px;min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.drawer-head,.drawer-footer{display:none}
.tools-backdrop{position:fixed;inset:0;z-index:120;background:#102a2a66;border:0;border-radius:0;padding:0;touch-action:none}
.tools-backdrop:hover{background:#102a2a66}
.tools.dragging{transition:none!important}
html.tools-modal-open,body.tools-modal-open{overflow:hidden;overscroll-behavior:none}
.dialog-head{position:sticky;top:-30px;z-index:2;margin:-30px -35px 20px;padding:12px 24px;background:var(--paper);border-bottom:1px solid var(--line)}
.dialog-head button{flex:0 0 44px;min-height:44px;display:grid;place-items:center}
.dialog-head .eyebrow{min-width:0;overflow-wrap:anywhere}
dialog{overflow-y:auto;overscroll-behavior:contain;max-height:calc(var(--study-viewport-height,100dvh) - 24px)}
.experience-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere}
@media(min-width:1700px){.tools-scroll{padding:34px 30px 20px}}
@media(min-width:761px) and (max-width:1100px){.tools-scroll{padding:25px 17px 20px}}
@media(max-width:760px){
  .topbar{height:auto;min-height:70px;padding:10px max(12px,env(safe-area-inset-left)) 10px max(12px,env(safe-area-inset-right));gap:8px 15px}
  .brand{gap:9px}.brand-mark{font-size:22px;letter-spacing:-2px;padding-right:11px}.brand b{font-size:22px;line-height:1.2}.brand small{font-size:8px;line-height:1.5}
  .head-actions{flex:1 1 140px;margin-left:auto;gap:3px 15px}.head-actions button,.home-link{font-size:12px;line-height:1.4}
  .tools{position:fixed;left:0;top:0;bottom:auto;width:min(340px,88vw);height:100vh;height:var(--study-viewport-height,100dvh);max-height:var(--study-viewport-height,100dvh);z-index:130;padding:0;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility .25s;border-right:1px solid #bdcbb8;touch-action:pan-y}
  .workspace.tools-open .tools{transform:translateX(0);visibility:visible;pointer-events:auto}
  .drawer-head{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;border-bottom:1px solid var(--line);background:#f5f7ee;font-family:SimHei,"黑体","Heiti SC",sans-serif;touch-action:pan-y}
  .drawer-head b{font-size:16px;line-height:1.5;display:block}.drawer-head small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
  .drawer-head .drawer-close{position:static;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;font-size:28px;line-height:1;background:#fff;border:1px solid var(--line)}
  .tools-scroll{padding:20px 20px 18px}.tools-heading{padding:0}.tools-heading h1{line-height:1.5;overflow-wrap:break-word}.tools-heading p{margin-bottom:17px}
  .drawer-footer{display:block;flex:0 0 auto;border-top:1px solid var(--line);padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#f5f7ee}
  .drawer-footer button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 14px;background:var(--green);color:white;border-color:var(--green);font-size:13px}
  .layer-row{font-size:13px;min-height:28px}.check-row,.range-label,.select-row{font-size:12px}.mode-buttons button{font-size:13px}.section-title h2{font-size:13px}
  .mobile-tools{min-height:44px;padding:10px 14px;font-size:12px}.mobile-tools:before{content:'☰';margin-right:7px;font-family:Arial,sans-serif}
  .dialog-head{top:-22px;margin:-22px -22px 18px;padding:10px 16px}
  .experience-bar>div:first-child{flex-wrap:wrap;row-gap:7px}.experience-actions{flex-wrap:wrap}.experience-actions button{flex:1 1 100px;min-height:44px;line-height:1.5}
  .panel-labels{line-height:1.5}.stage-kicker{line-height:1.5}.view-controls{flex-wrap:wrap}.view-controls button{min-height:36px}
}
@media(prefers-reduced-motion:reduce){.tools{transition:none}}

/* Attribution is also painted into the WebGL canvas; this text is its accessible equivalent. */
.source-accessible{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.figure-export{padding:22px 34px;display:flex;align-items:center;flex-wrap:wrap;gap:14px 28px;border-bottom:1px solid var(--line);background:#f7f8f2}
.figure-export>div{flex:1;min-width:220px}.figure-export b{font-family:SimHei,"黑体","Heiti SC",sans-serif;font-size:14px}
.figure-export p{font-size:11px;color:var(--muted);line-height:1.8;margin:6px 0 0}
.figure-export button{min-height:44px;padding:11px 20px;background:#245f4b;color:white;font-size:12px;white-space:nowrap}
.figure-export #save-status{flex-basis:100%;margin:0;font-size:10px}
@media(max-width:760px){.figure-export{padding:20px;gap:14px}.figure-export>div{flex-basis:100%}.figure-export button{width:100%;font-size:13px}}
@media print{.figure-export button,.mobile-tools,.view-controls{display:none}.stage{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Study localization; controls retain their current state when language changes. */
.study-language{display:flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:4px;flex-shrink:0}.study-language button{border:0;padding:6px 8px;min-height:32px;background:transparent;font-size:11px;white-space:nowrap}.study-language button[aria-pressed=true]{background:var(--green);color:#fff}.topbar .brand{flex-shrink:0}.topbar .page-name{min-width:0;letter-spacing:.5px}.head-actions{gap:12px}.mode-buttons button{overflow-wrap:anywhere}.layer-row{line-height:1.5}.layer-row>span:not(.layer-swatch){min-width:0;overflow-wrap:anywhere}.coordinate-note{max-width:240px}.coordinate-note span{line-height:1.5}.chart-legend{flex-wrap:wrap}.runtime-state{max-width:70%;text-align:right;line-height:1.5}.panel-labels>span{max-width:48%;overflow-wrap:anywhere;line-height:1.4}html[lang=en] .tools-heading h1{font-size:24px;line-height:1.25}html[lang=en] .mode-buttons button span{font-size:9px}html[lang=ja] body{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,SimHei,sans-serif}html[lang=ja] h1,html[lang=ja] h2,html[lang=ja] h3{font-family:"Hiragino Mincho ProN","Yu Mincho",serif}.story-card{max-width:min(500px,calc(100% - 40px))}.story-card p{line-height:1.7}.story-card button{white-space:normal}.figure-export p{line-height:1.8}.reading-grid article{min-width:0}.dialog-bottom{flex-wrap:wrap}
@media(max-width:1100px){.topbar .page-name{display:none}.head-actions .research-pill{display:none}}
@media(max-width:760px){.topbar .brand b{font-size:19px}.topbar .brand small{font-size:9px;letter-spacing:0}.head-actions{flex-basis:100%;justify-content:space-between;margin-left:0;gap:6px}.study-language{order:-1}.study-language button{padding:5px 8px}.head-actions button,.head-actions .home-link{font-size:11px}.coordinate-note{max-width:180px;font-size:9px}.experience-bar>div:first-child{align-items:flex-start}.experience-bar b{font-size:14px;line-height:1.5}.experience-actions button{font-size:10px;line-height:1.5}.story-card{padding:16px;max-width:calc(100% - 30px)}.story-card h2{font-size:19px}.story-card p{font-size:11px}.story-card button{font-size:10px}.stage-bottom .mouse-help{max-width:42%;line-height:1.6}.runtime-state{font-size:9px;max-width:55%}.view-controls{flex-wrap:wrap;max-width:calc(100% - 26px)}.view-controls button{font-size:10px}.tools-heading h1{font-size:23px}.panel-labels{font-size:9px}}

#runtime-state{white-space:normal;overflow-wrap:anywhere}.stage-bottom .mouse-help{white-space:normal}@media(max-width:760px){.coordinate-note{bottom:164px;max-width:calc(100% - 34px)}.stage-bottom{align-items:flex-end}.chart-wrap{overflow-x:auto}#profile-chart{min-width:620px}}

/* Mobile header: explicit cells let translated or enlarged text grow vertically. */
@media(max-width:760px){
  .topbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:8px 12px;padding:12px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}
  .topbar .brand{grid-column:1;grid-row:1;min-width:0;max-width:100%;gap:8px;white-space:normal}
  .topbar .brand>span:last-child{min-width:0;flex:1 1 0}
  .topbar .brand b,.topbar .brand small{white-space:normal;overflow-wrap:anywhere;letter-spacing:0;line-height:1.5}
  .topbar .brand-mark{padding-right:9px;line-height:1.5;letter-spacing:-2px}
  .topbar .head-actions{display:contents}
  .topbar .study-language{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:180px;gap:2px;justify-self:end;align-self:center}
  .topbar .study-language button{min-width:0;min-height:40px;padding:6px 4px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;justify-content:center;text-align:center}
  .topbar #about-open,.topbar .home-link{min-width:0;max-width:100%;min-height:40px;height:auto;padding:6px 0;font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;align-self:stretch}
  .topbar #about-open{grid-column:1;grid-row:2;justify-self:start;text-align:left}
  .topbar .home-link{grid-column:2;grid-row:2;justify-self:end;text-align:right;justify-content:flex-end}
}
