:root{--ink:#192927;--sub:#52625d;--line:#dbe3dd;--paper:#f6f8f5;--green:#1d5149;--green2:#286357;--pale:#e0ece0;--acid:#d8e98f;--white:#fff;--font:"Segoe UI","PingFang SC","Noto Sans SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;--serif:Georgia,var(--font)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;color:var(--ink);background:var(--paper);font:1rem/1.6 var(--font);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,summary{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #45826e;outline-offset:3px}img{max-width:100%}h1,h2,h3,h4,p{margin:0}svg{display:block}.ico{width:1.3em;height:1.3em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.wrap{width:min(1312px,calc(100% - 96px));margin-inline:auto}.skip{position:fixed;left:-2000px;z-index:99}.skip:focus{left:10px;top:10px;background:white;padding:10px}.load{padding-block:64px;min-height:55vh}.mast{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.mast-inner,.brand,.mast nav,.mast nav a,.global-search,.foot,.section-title,.subhead,.headflex,.tags,.tools,.tabs,.pmeta,.bar,.fright,.tagline,.doc-actions{display:flex;align-items:center}.mast-inner{height:70px;gap:clamp(22px,5vw,90px)}.brand{gap:11px;flex:none}.brand svg{width:39px}.brand span{display:grid;line-height:1}.brand b{font-weight:760;font-size:1.14rem;letter-spacing:.08em}.brand small{font:650 .66rem/1.2 var(--font);letter-spacing:.2em;margin-top:5px;color:#576c60}.mast nav{align-self:stretch;gap:34px}.mast nav a{position:relative;font-size:.95rem;color:var(--sub);font-weight:600}.mast nav a.active{color:var(--green)}.mast nav a.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--green)}.global-search{gap:10px;justify-content:flex-start;margin-left:auto;border:1px solid var(--line);border-radius:6px;background:var(--paper);padding:6px 9px 6px 13px;color:var(--sub);font-size:.88rem}.glass{display:inline-block;width:15px;height:15px;border:1.8px solid currentColor;border-radius:50%;position:relative;margin-right:2px}.glass:after{content:"";position:absolute;width:6px;height:1.8px;background:currentColor;bottom:-2px;right:-4px;transform:rotate(45deg)}kbd{font:inherit;margin-left:35px;color:#607168;border:1px solid #d4ddd5;padding:0 6px;border-radius:3px;background:white}.hero{background:#193e3a;color:white;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#b2caae0c 1px,transparent 1px),linear-gradient(90deg,#b2caae0c 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(90deg,transparent,#000 70%)}.hero-in{min-height:277px;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.71fr);align-items:center;gap:6%;padding-block:28px}.kicker,.eyebrow,.count-label,.serial,.eyetext,.meta-label{font-size:.75rem;line-height:1.4;letter-spacing:.13em;font-weight:700}.kicker{color:#deedab;display:flex;align-items:center;gap:10px}.kicker:before{content:"";width:26px;height:2px;background:var(--acid)}.hero h1{font-size:clamp(2rem,3.55vw,3.65rem);letter-spacing:.018em;font-weight:650;line-height:1.18;margin:14px 0}.hero p{color:#d0dfd8;max-width:45em;font-size:1rem}.metrics{margin-top:23px;display:flex;color:#d6e4dd;align-items:baseline;gap:18px}.metrics span{font-size:.86rem}.metrics b{font:500 1.62rem/1 var(--serif);color:white;margin-right:5px}.metrics i,.foot i{height:16px;width:1px;background:#82978c88;align-self:center}.spot{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(95px,1fr) minmax(0,1fr);gap:17px;align-items:center;padding:13px;border:1px solid #71968a72;background:#f6faf412;border-radius:8px;transition:background .18s}.spot:hover{background:#f6faf424}.spot-pic{background:#fff;aspect-ratio:1.26;overflow:hidden;border-radius:4px;display:grid;place-items:center}.spot-pic img{width:100%;height:100%;object-fit:contain}.spot-copy{min-width:0;padding:3px 9px 3px 0}.spot-copy small{display:block;color:#d3e894;letter-spacing:.13em;font-size:.72rem;font-weight:700}.spot-copy b{font-weight:600;line-height:1.45;display:block;margin:10px 0;font-size:clamp(1rem,1.42vw,1.32rem)}.spot-copy .sp-meta{color:#deebe3;font-size:.79rem}.home-section{padding-block:35px 8px}.section-title{gap:10px}.section-title h2,.subhead h2{font-weight:680;font-size:clamp(1.42rem,2.15vw,1.95rem);letter-spacing:.04em}.eyebrow,.eyetext,.meta-label{color:#537367}.section-sub{color:var(--sub);font-size:.92rem;margin-top:3px}.headflex,.subhead{justify-content:space-between;gap:10px;margin-bottom:15px}.count-label{color:#64776c;font-size:.77rem;letter-spacing:.045em;font-weight:550}.domains-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.domain-card{display:flex;gap:11px;align-items:center;background:white;border:1px solid var(--line);border-radius:6px;padding:16px 12px;min-height:82px;transition:border-color .17s,background .17s,transform .17s}.domain-card:hover{border-color:#8eaf97;background:#fbfdf9;transform:translateY(-2px)}.dicon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:6px;color:var(--green);background:#e8f0e6}.domain-card:nth-child(3n+2) .dicon{background:#edf0e1}.domain-card:nth-child(3n) .dicon{background:#e1edeb}.dicon .ico{width:22px;height:22px}.domain-body{min-width:0;flex:1}.domain-name{display:block;font-weight:640;line-height:1.42;font-size:.96rem}.domain-meta{color:#617267;font-size:.8rem;margin-top:2px;display:block}.chev{display:inline-block;border:solid currentColor;border-width:0 1.4px 1.4px 0;width:7px;height:7px;transform:rotate(-45deg);color:#80978a;margin:0 3px}.library{margin-top:25px;padding-top:28px;border-top:1px solid #d2ddd4;padding-bottom:52px}.tabs{gap:8px;flex-wrap:wrap;margin-top:18px;margin-bottom:17px}.tabs button,.tool,.pagebtn,.small-button,.primary,.back{border:1px solid var(--line);border-radius:5px;background:white;padding:7px 14px;font-size:.9rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}.tabs button.active,.primary{color:#fff;background:var(--green);border-color:var(--green)}.tabs em{font-style:normal;font-size:.78rem;opacity:.8}.journals{display:grid;gap:8px}.journal{border:1px solid var(--line);border-radius:6px;background:white;overflow:hidden}.journal summary{padding:13px 16px;display:flex;align-items:center;gap:10px;font-weight:620;list-style:none}.journal summary::-webkit-details-marker{display:none}.journal summary .ico{color:var(--green)}.journal summary .chev{margin-left:auto}.journal[open] summary .chev{transform:rotate(45deg)}.pill,.badge{border-radius:4px;padding:2px 7px;font-size:.78rem;line-height:1.6;background:var(--pale);color:var(--green);font-weight:600}.badge{background:white;border:1px solid var(--line);color:var(--sub)}.journal[open] summary{border-bottom:1px solid var(--line)}.paper-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 17px}.paper-row+.paper-row{border-top:1px solid #e8ece6}.paper-row>.ico{width:24px;height:24px;align-self:start;color:var(--accent,#865f49)}.paper-title{font-family:var(--serif);font-weight:600;font-size:1.04rem;line-height:1.37}.paper-title:hover,.paper-actions a:hover,.route-link:hover{text-decoration:underline;text-underline-offset:3px}.paper-info{font-size:.8rem;color:var(--sub);margin-top:2px}.paper-actions{display:flex;gap:13px;font-size:.86rem;color:var(--green);font-weight:600}.foot{justify-content:space-between;gap:12px;min-height:65px;color:#698076;font-size:.8rem;border-top:1px solid var(--line)}.foot span:first-child{display:flex;gap:9px;align-items:center;letter-spacing:.06em}.foot i{height:12px}footer{background:#edf2ed}.page{min-height:72vh;padding-top:24px;padding-bottom:45px}.crumb{display:flex;gap:8px;flex-wrap:wrap;align-items:center;color:#647569;font-size:.83rem;margin-bottom:15px}.crumb a:hover{color:var(--green);text-decoration:underline}.crumb i{font-style:normal;opacity:.65}.crumb strong{font-weight:600;color:#44574d}.page h1{line-height:1.25;letter-spacing:.01em;font-size:clamp(1.8rem,3.4vw,3rem);margin:8px 0}.pmeta{gap:8px;flex-wrap:wrap;color:var(--sub);font-size:.87rem}.tagline{gap:8px;flex-wrap:wrap}.case-head,.domain-head{padding:19px 0 22px}.bar{justify-content:space-between;gap:14px;flex-wrap:wrap}.eng-title{font-family:var(--serif);font-size:1.09rem;color:#43574c;max-width:78ch;margin:5px 0 12px}.doc-actions{gap:8px;flex-wrap:wrap}.tool:hover,.small-button:hover{border-color:#779986;background:#f0f6f0}.primary:hover{background:#276453}.case-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px}.panel{border:1px solid var(--line);background:white;border-radius:7px;overflow:hidden;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 17px;border-bottom:1px solid var(--line);background:#fbfcfa}.panel-title{display:flex;gap:8px;align-items:center}.panel-title h2{font-size:1.05rem;font-weight:650}.panel-title .ico{color:var(--green);width:20px;height:20px}.panel-ctl{background:transparent;color:var(--green);border:0;display:flex;align-items:center;gap:5px;font-size:.83rem}.panel-scene,.panel-math,.panel-ontology,.descpanel{height:clamp(275px,30vw,420px);overflow:auto}.image-frame{width:100%;padding:12px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:zoom-in}.image-frame img{width:100%;height:100%;object-fit:contain}.panel-math{padding:13px;background:#f2f5f1}.math-img{display:block;width:100%;border:1px solid #e2e6df;background:#fff;padding:0;margin-bottom:10px;cursor:zoom-in}.math-img img{width:100%;display:block}.panel-math object,.panel-math iframe{width:100%;height:100%;border:0}.descpanel{padding:17px 21px;line-height:1.85}.descpanel p+p{margin-top:12px}.descpanel h3{font-size:1.02rem;margin:15px 0 6px}.descpanel h3:first-child{margin-top:0}.summary{font-weight:600}.muted,.empty{color:var(--sub)}.empty{padding:27px 18px;font-size:.95rem;text-align:center}.route-link{color:var(--green);font-weight:620}.section-mini{display:flex;justify-content:space-between;align-items:center;padding:20px 0 10px;border-top:1px solid var(--line)}.section-mini h2{font-size:1.18rem}.search-field{display:flex;align-items:center;gap:12px;padding:9px 13px;border:1px solid #bacdbd;border-radius:5px;background:#fff;color:var(--sub)}.search-field input{outline:0;border:0;min-width:0;width:100%;font-size:.95rem;color:var(--ink);background:transparent}.search-field:focus-within{outline:2px solid #8cafa1}.tools{gap:12px;justify-content:space-between;padding:12px 0 16px}.tools .search-field{width:min(360px,70vw)}.result-list{background:white;border:1px solid var(--line);border-radius:6px}.result{display:flex;align-items:center;gap:13px;padding:14px 16px}.result+.result{border-top:1px solid var(--line)}.result:hover{background:#f1f6ef}.serial{color:#577164;font-family:ui-monospace,Consolas,monospace;letter-spacing:.02em;font-size:.81rem}.result-body{min-width:0;flex:1}.result strong{display:block;font-weight:650}.result small{display:block;color:var(--sub);line-height:1.45;margin-top:3px;font-size:.85rem}.no-hits{padding:28px;text-align:center;color:var(--sub)}dialog{border:1px solid var(--line);border-radius:9px;color:var(--ink);padding:0;box-shadow:0 18px 65px #122b2d55}dialog::backdrop{background:#132f2db3}.dialog-head{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:11px 18px;border-bottom:1px solid var(--line);background:white}.icon-btn{font:400 1.6rem/1 var(--font);border:0;background:#edf2ec;border-radius:4px;width:30px;height:30px}.search-modal{width:min(660px,94vw)}.search-modal .search-field{margin:15px}.search-modal #hits{max-height:62dvh;overflow:auto}.search-modal #hits .result:first-child{border-top:1px solid var(--line)}.viewer{width:min(1350px,96vw);max-width:96vw;height:93dvh;max-height:93dvh}.zoom-tools{display:flex;align-items:center;gap:9px;font-size:.82rem;margin-left:auto}.zoom-tools button{border:1px solid var(--line);background:#f7faf6;border-radius:4px;min-width:30px;height:29px;font-size:1.1rem}.viewer #viewer-body{height:calc(100% - 54px);overflow:auto;text-align:center;background:#f5f7f2;padding:14px}.viewer #viewer-body img{max-width:none;vertical-align:top;display:block;margin:0 auto 12px;background:white;box-shadow:0 1px 8px #152b2214}.viewer #viewer-body iframe{width:100%;border:0;height:100%}.case-nav{margin-top:17px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--green);font-size:.9rem}.case-nav a:hover{text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1500px){.hero-in{min-height:310px}}@media(max-width:1060px){.wrap{width:calc(100% - 48px)}.domains-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-in{gap:4%;grid-template-columns:minmax(0,1fr) minmax(260px,.72fr)}.spot{gap:10px}.domain-card{padding:13px 10px}.paper-actions{gap:7px}}
@media(max-width:760px){.wrap{width:calc(100% - 32px)}.mast-inner{height:59px;gap:20px}.mast nav{gap:17px}.mast nav a{font-size:.87rem}.global-search{padding:7px 9px}.global-search kbd,.global-search>span:nth-child(2){display:none}.hero-in{grid-template-columns:1fr;padding-block:24px;min-height:0;gap:18px}.hero h1{margin-block:9px}.hero p{font-size:.94rem}.metrics{margin-top:12px}.spot{display:none}.domains-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-section{padding-top:23px}.case-grid{grid-template-columns:minmax(0,1fr);gap:12px}.panel-scene,.panel-ontology{height:auto;min-height:160px;max-height:390px}.panel-scene img,.panel-ontology img{max-height:365px}.panel-math,.descpanel{height:auto;max-height:420px;min-height:130px}.headflex{align-items:flex-end}.paper-row{grid-template-columns:24px minmax(0,1fr);gap:8px}.paper-actions{grid-column:2}.page{padding-top:15px}.kicker{font-size:.7rem}}
@media(max-width:455px){.domain-card{gap:7px;min-height:75px}.dicon{flex-basis:30px;height:33px}.dicon .ico{width:19px;height:19px}.domain-name{font-size:.87rem}.domain-card .chev{display:none}.metrics{gap:12px}.metrics b{font-size:1.4rem}.tabs{gap:5px}.tabs button{padding:5px 9px}.tabs em{font-size:.7rem}.brand svg{width:32px}.brand{gap:6px}.mast-inner{gap:15px}.mast nav{gap:15px}.section-sub{font-size:.84rem}.tools{flex-wrap:wrap}.foot{flex-wrap:wrap}.bar{align-items:flex-start}.hero h1{font-size:2.1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:after,*:before{transition-duration:0s!important;animation-duration:0s!important}}
.desc-switch{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden}.desc-switch button{background:#fff;color:var(--sub);border:0;padding:3px 9px;font-size:.8rem;line-height:1.55}.desc-switch button[aria-pressed=true]{background:#e4eee3;color:#174f43;font-weight:700}.descpanel .katex{font-size:1.04em}.descpanel .katex-display{overflow-x:auto;overflow-y:hidden;padding:4px 0}

.ontology-tools,.ontology-downloads{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.ontology-tools small{color:#52645d;font-size:.79rem}.ontology-downloads{justify-content:flex-end}

.ontology-preview {
  display: flex;
  flex-direction: column;
  background: #fbf9f2;
  height: clamp(275px, 30vw, 420px);
}
.ontology-preview .panel-ontology {
  flex: 1;
  min-height: 0;
  height: 0;
  max-height: none;
  padding: 4px;
}
.ontology-preview .panel-ontology img { max-height: none; }
.ontology-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 14px;
  border-top: 1px solid #e5e4d9;
  background: #fcfbf6;
  color: #546057;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.ontology-caption i { margin-inline: 3px; font-style: normal; }
.ontology-edge-key, .ontology-edge-key span { display: inline-flex; align-items: center; }
.ontology-edge-key { gap: 10px; }
.ontology-edge-key span { gap: 4px; }
.ontology-edge-key span::before { content: ""; width: 18px; border-top: 2px solid #357568; }
.ontology-edge-key span + span::before { border-top: 2px dashed #687e88; }
.zoom-tools #zoom-fit { display: none; }
.ontology-viewer[open] {
  display: flex;
  flex-direction: column;
  width: min(1640px, 96vw);
}
.ontology-viewer .dialog-head { flex: none; }
.ontology-viewer #viewer-title { line-height: 1.3; }
.ontology-viewer .zoom-tools { flex: none; }
.ontology-viewer .zoom-tools #zoom-fit {
  display: inline-block;
  padding-inline: 10px;
  color: var(--green);
  font: 600 .84rem var(--font);
}
.ontology-viewer #zoom-value { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }
.ontology-viewer #viewer-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  background: #f2f1e9;
  overscroll-behavior: contain;
}
.ontology-stage {
  display: flex;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
}
.ontology-viewer #viewer-body img {
  flex: none;
  height: auto;
  align-self: center;
  margin: auto;
  background: #fbf9f2;
  box-shadow: none;
  user-select: none;
}
.ontology-viewer:has(#zoom-out:enabled) .ontology-stage { cursor: grab; }
.ontology-viewer #viewer-body.panning .ontology-stage { cursor: grabbing; }
.ontology-viewer button:disabled { opacity: .48; cursor: default; }
@media (max-width: 760px) {
  .ontology-preview { height: clamp(225px, 64vw, 390px); }
  .ontology-viewer[open] {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border: 0; border-radius: 0;
  }
  .ontology-viewer .dialog-head { gap: 6px; padding: 8px 10px; }
  .ontology-viewer .zoom-tools { gap: 4px; }
  .ontology-viewer .zoom-tools button, .ontology-viewer .icon-btn { min-width: 36px; height: 36px; }
  .ontology-viewer #viewer-title { font-size: .88rem; }
}
.world-controls,.world-caption {
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
  padding:8px 14px;
}
.world-controls {border-bottom:1px solid var(--line)}
.world-tabs {display:inline-flex;gap:3px}
.world-tabs button,.world-inspect-button,#world-layers button {
  font:600 .83rem/1.45 var(--font);border:0;background:transparent;color:var(--sub);border-radius:5px;padding:6px 9px
}
.world-tabs button[aria-pressed=true],#world-layers button[aria-pressed=true] {background:#e2eee6;color:#1d5149}
.world-inspect-button {text-decoration:underline;text-underline-offset:3px;color:var(--green)}
.world-caption {font-size:.76rem;color:var(--sub);border-top:1px solid var(--line)}
.world-caption>span {font-family:Consolas,monospace}
.world-figure {display:block;width:100%;border:0;padding:0;background:#fbfaf6;cursor:zoom-in}
.world-figure img {display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
.world-model [hidden] {display:none!important}
#world-inspector {width:min(1050px,94vw);height:min(790px,90dvh);padding:0}
#world-inspector[open] {display:flex;flex-direction:column}
#world-inspector .dialog-head {flex:none}
#world-inspector-problem {font-size:.83rem;color:var(--sub)}
.world-inspector-body {display:grid;grid-template-columns:minmax(155px,23%) minmax(0,1fr);overflow:hidden;flex:1}
#world-layers {display:flex;flex-direction:column;gap:5px;padding:16px 10px;background:#f6f8f4;overflow:auto;border-right:1px solid var(--line)}
#world-layers button {text-align:left}
.world-layer-content {min-width:0;overflow:auto;overflow-wrap:anywhere;padding:18px 22px}
.world-layer-content h3 {margin:0 0 14px;font-size:1.1rem}
.world-group {border:1px solid var(--line);border-radius:6px;margin-bottom:8px}
.world-group summary {cursor:pointer;padding:9px 12px;font-weight:650}
.world-group summary small {float:right;color:var(--sub);font-weight:400;font-variant-numeric:tabular-nums}
.world-records {border-top:1px solid var(--line);padding:10px 13px}
.world-records code {font-size:.74rem;color:var(--sub)}
.world-records dl {margin:8px 0;font-size:.88rem}
.world-records dt {margin-top:10px;font-weight:620}
.world-records dd {margin:2px 0 0;color:var(--sub);white-space:pre-line}
@media(max-width:650px){
 #world-inspector[open] {width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .world-inspector-body {display:flex;flex-direction:column}
 #world-layers {flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:2px;border-right:0;border-bottom:1px solid var(--line)}
 .world-layer-content {flex:1;padding:13px}
 .world-controls {padding:6px}.world-tabs button,.world-inspect-button {padding:6px 7px}
}

.replay-entry{font:650 .82rem/1.4 var(--font);color:#155649;padding:5px 10px;border-radius:5px;background:#e2f0e8;white-space:nowrap}
.replay-entry[hidden]{display:none}.replay-entry:hover{background:#d3e6d8}
@media(max-width:650px){.ontology-viewer .dialog-head{flex-wrap:wrap}.mast .mast-inner{gap:9px}.mast nav{gap:9px}.mast nav a{white-space:nowrap}.world-caption{justify-content:flex-start}}
@media(max-width:390px){.mast .brand small{display:none}.mast .brand svg{width:24px}.mast .brand{gap:3px}.mast .mast-inner{gap:6px}.mast nav{gap:6px}.mast nav a{font-size:.78rem}}

/* The scene takes the full row. Keep the model and its description together below. */
.case-grid > .panel:first-child { grid-column: 1 / -1; }
.case-grid .panel-scene {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  background: white;
}
.case-grid .panel-scene img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}
.case-head .replay-entry {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 7px 13px;
  color: white;
  background: var(--green);
  border-radius: 5px;
}
.case-head .replay-entry:hover { background: #174a3e; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer .dialog-head { flex: none; }
.viewer #viewer-body { flex: 1; min-height: 0; }
.viewer .zoom-tools #zoom-fit {
  display: inline-block;
  padding: 0 9px;
  font: 600 .82rem var(--font);
}
.viewer .zoom-tools button:disabled { opacity: .45; }
.viewer #zoom-value { min-width: 3em; text-align: center; font-variant-numeric: tabular-nums; }
.viewer.scene-viewer #viewer-body { display: flex; padding: 0; overscroll-behavior: contain; }
.viewer.scene-viewer #viewer-body img { flex: none; align-self: start; height: auto; margin: auto; }
@media(max-width:760px) {
  .viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .viewer .dialog-head { gap: 5px; padding: 8px; }
  .viewer .zoom-tools { gap: 4px; }
  .viewer #viewer-title { font-size: .85rem; line-height: 1.25; }
  .viewer .zoom-tools button { min-height: 36px; }
}
@media(max-width:360px) {
  .mast .wrap { width: calc(100% - 16px); }
  .mast .global-search { padding-inline: 6px; }
}

#domain-index .domains-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paper-reference {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.paper-reference h2 { color: var(--green); font-size: 1rem; }
.paper-reference h2 span { margin-left: .4rem; color: var(--sub); font-size: .8rem; font-weight: 500; }
.paper-reference p {
  max-width: 88ch;
  margin-top: .45rem;
  font: 1rem/1.65 var(--serif);
  overflow-wrap: anywhere;
}
.paper-reference a { color: var(--green); text-decoration: underline; text-underline-offset: .15em; }
.scene-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px clamp(22px, 3.5vw, 52px);
  margin-bottom: clamp(18px, 2vw, 28px);
  padding: clamp(14px, 1.6vw, 24px);
  border-radius: 12px;
  background-color: #1b443e;
  background-image: linear-gradient(#cedec00c 1px, transparent 1px), linear-gradient(90deg, #cedec00c 1px, transparent 1px);
  background-size: 36px 36px;
  color: #f5f7ec;
}
.scene-feature {
  grid-area: 1 / 1 / 3 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  gap: inherit;
  color: inherit;
}
.scene-visual {
  grid-area: 1 / 1 / 3 / 2;
  display: block;
  min-width: 0;
  height: clamp(186px, 20vw, 274px);
  padding: 5px;
  border-radius: 7px;
  background: white;
}
.scene-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .scene-visual img { animation: scene-appear .22s ease-out; }
  @keyframes scene-appear { from { opacity: .35; } to { opacity: 1; } }
}
.scene-copy { grid-area: 1 / 2 / 2 / 3; align-self: end; min-width: 0; }
.scene-kicker { color: #d8e99a; font-size: .8rem; font-weight: 650; letter-spacing: .1em; }
.scene-title { margin: 7px 0; color: inherit; font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.4; text-wrap: balance; }
.scene-meta { color: #dce9e2; font-size: .92rem; }
.scene-feature:hover .scene-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.scene-controls {
  grid-area: 2 / 2 / 3 / 3;
  place-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.scene-controls[hidden] { display: none; }
.scene-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #79948a;
  border-radius: 7px;
  background: #264e46;
  color: #f6f8ef;
  font-size: .875rem;
}
.scene-controls button:is([data-carousel="prev"], [data-carousel="next"]) { font-size: 1.4rem; line-height: 1; }
.scene-controls button:hover { background: #396256; }
.scene-position { min-width: 4em; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.scene-carousel :is(a,button):focus-visible { outline: 2px solid #e0eeaa; outline-offset: 3px; }
@media (max-width: 640px) {
  .scene-carousel { display: block; }
  .scene-feature { display: block; }
  .scene-visual { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 220px; }
  .scene-copy { display: block; margin-top: 12px; }
  .scene-title { min-height: 2.8em; margin: 3px 0; font-size: 1.15rem; }
  .scene-controls { margin-top: 10px; }
}
.catalog-topic, .result .catalog-topic {
  display: inline-block;
  max-width: 100%;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #edf3e9;
  color: #405f4c;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.55;
}
.subdomain-nav { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:9px; }
.subdomain-nav a {
  display:inline-flex; align-items:center; gap:9px; padding:7px 12px; border:1px solid var(--line);
  border-radius:5px; background:white; color:var(--ink); font-size:.9rem; font-weight:600;
}
.subdomain-nav a span, .subdomain-section h2 small { font-size:.78rem; font-variant-numeric:tabular-nums; }
.subdomain-nav a span { opacity:.82; }
.subdomain-nav a:hover { border-color:var(--green); }
.subdomain-nav a[aria-current=page] { color:white; border-color:var(--green); background:var(--green); }
.subdomain-section + .subdomain-section { margin-top:26px; }
.subdomain-section h2 { display:flex; align-items:baseline; gap:10px; margin:5px 0 9px; font-size:1.12rem; }
.subdomain-section h2 a:hover { text-decoration:underline; }
.subdomain-section h2 small { color:var(--sub); font-weight:500; }
@media(max-width:480px) {
  .subdomain-nav { gap:6px; }
  .subdomain-nav a { gap:6px; padding:6px 9px; }
}
