body header #encyclopedia-toggle{margin-left:auto;flex:none;width:46px;height:46px;min-height:46px;padding:11px;border:1px solid #ffffffb8;border-radius:16px;background:#fffff1ed;color:#174752;box-shadow:0 3px 18px #123f5010;cursor:pointer;pointer-events:auto}
#encyclopedia-toggle svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
body header #encyclopedia-toggle+#menu-toggle{margin-left:0}
.encyclopedia-dialog{box-sizing:border-box;width:min(1240px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid #d6e2dc;border-radius:22px;background:#fbfcf8;color:#214840;box-shadow:0 24px 90px #082c3b50;font:16px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;overflow:hidden}
.encyclopedia-dialog[open]{display:flex;flex-direction:column}.encyclopedia-dialog::backdrop{background:#102f3a33}
.encyclopedia-dialog *{box-sizing:border-box}.encyclopedia-dialog [hidden]{display:none!important}
.encyclopedia-dialog button,.encyclopedia-dialog input,.encyclopedia-dialog select{font:inherit;color:inherit}
.encyclopedia-dialog button{cursor:pointer}.encyclopedia-dialog button:focus-visible,.encyclopedia-dialog input:focus-visible,.encyclopedia-dialog select:focus-visible,.encyclopedia-dialog a:focus-visible,#encyclopedia-toggle:focus-visible{outline:3px solid #cf8b27;outline-offset:3px}
.encyclopedia-heading{display:flex;align-items:center;gap:20px;padding:20px 26px;border-bottom:1px solid #21484020;flex:none}.encyclopedia-heading h2{font:650 24px/1.2 Inter,system-ui,sans-serif;margin:0;flex:1;min-width:0}.encyclopedia-heading h2:focus{outline:none}
.encyclopedia-close{border:0;background:transparent;border-radius:12px;min-width:44px;min-height:44px;font-size:28px!important;line-height:1}.encyclopedia-close:hover,.encyclopedia-back:hover{background:#e5eee8}.encyclopedia-back{background:transparent;border:1px solid #b7cbc1;border-radius:10px;padding:10px 12px;min-height:44px;font-size:14px!important}
.encyclopedia-directory{padding:26px;overflow:auto;min-height:0}.encyclopedia-search{display:flex;gap:12px}.encyclopedia-search input,.encyclopedia-search select{padding:12px 14px;min-height:48px;border:1px solid #afc5ba;background:white;border-radius:12px;min-width:0}.encyclopedia-search input{flex:1}.encyclopedia-count{font-size:14px;color:#536d62;margin:14px 0}.encyclopedia-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.encyclopedia-card{padding:0;text-align:left;background:white;border:1px solid #d3e0d9;border-radius:16px;overflow:hidden;display:flex;align-items:stretch}.encyclopedia-card:hover{border-color:#318276;box-shadow:0 4px 18px #21484010}.encyclopedia-card img{width:40%;height:auto;object-fit:cover;aspect-ratio:1;min-width:0}.encyclopedia-card-copy{padding:20px;display:flex;flex-direction:column;justify-content:center;gap:6px;font-size:14px}.encyclopedia-card strong{font-size:22px;line-height:1.3}.encyclopedia-category{font-size:14px;color:#46685c;margin:0 0 8px}.encyclopedia-card .encyclopedia-count{margin:3px 0 0}
.encyclopedia-detail{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);overflow:auto;min-height:0}.encyclopedia-visual{padding:24px;background:#e8eeea;min-width:0;align-self:start;position:sticky;top:0}.encyclopedia-photo{position:relative;width:100%;background:#152d29;border-radius:12px;overflow:hidden}.encyclopedia-photo>img{display:block;width:100%;height:auto}.encyclopedia-overlay,.encyclopedia-overlay>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.encyclopedia-overlay polygon{fill:transparent;stroke:transparent;stroke-width:.35;pointer-events:auto;cursor:pointer}.encyclopedia-overlay polygon:hover,.encyclopedia-overlay polygon.active{fill:#73ead539;stroke:#abfff0;vector-effect:non-scaling-stroke;stroke-width:2px}
.encyclopedia-hotspot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:2px solid white;border-radius:50%;width:44px;height:44px;padding:0;background:#214840;color:white!important;box-shadow:0 2px 9px #0008;font-size:14px!important;font-weight:700!important;line-height:1}.encyclopedia-hotspot[aria-pressed=true]{background:#fff0bd;color:#214840!important;box-shadow:0 0 0 4px #21484080}
.encyclopedia-image-status{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;padding:24px;color:white;background:#152d29}.encyclopedia-image-status button{background:white;color:#214840;border:0;border-radius:10px;padding:10px 18px}.encyclopedia-photo-caption{font-size:14px;color:#4c665c;margin:12px 0 0}.encyclopedia-info{padding:24px;min-width:0}.encyclopedia-intro{margin:0 0 20px}.encyclopedia-component-detail{padding:20px;background:#edf3ee;border-radius:14px;border:1px solid #d6e4dc;min-height:230px}.encyclopedia-component-detail h3{font-size:20px;line-height:1.3;margin:0 0 10px}.encyclopedia-component-detail p{margin:10px 0}.encyclopedia-note{font-size:14px;color:#53695e}.encyclopedia-source{font-size:14px;color:#1a665c;text-underline-offset:3px}.encyclopedia-list-title{font-size:16px;margin:22px 0 8px}.encyclopedia-components{display:grid;gap:5px}.encyclopedia-component{display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 10px;background:transparent;border:1px solid transparent;border-radius:10px;text-align:left;font-size:14px!important}.encyclopedia-component[aria-pressed=true]{border-color:#c0d6ca;background:#e5eee7}.encyclopedia-component:hover{background:#edf3ee}.encyclopedia-number{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#214840;color:white;font-weight:650;font-size:14px}.encyclopedia-empty{grid-column:1/-1;padding:30px 0}
@media(max-width:800px){.encyclopedia-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.encyclopedia-heading{padding:12px 16px;gap:12px}.encyclopedia-heading h2{font-size:20px}.encyclopedia-directory{padding:16px}.encyclopedia-detail{display:block}.encyclopedia-visual{position:static;padding:14px}.encyclopedia-info{padding:18px}.encyclopedia-search{flex-direction:column}.encyclopedia-entries{grid-template-columns:1fr}.encyclopedia-component-detail{min-height:0}.encyclopedia-card-copy{padding:16px}.encyclopedia-hotspot{width:44px;height:44px}.encyclopedia-photo-caption{font-size:14px}.encyclopedia-component{min-height:48px}}

.encyclopedia-overlay line{stroke:transparent;pointer-events:none}.encyclopedia-overlay line.active{stroke:#abfff0;stroke-width:2px;vector-effect:non-scaling-stroke}
.encyclopedia-inspect{display:block;min-height:46px;padding:10px 16px;margin:0 0 12px;border:1px solid #214840;border-radius:10px;background:#214840;color:white!important;font:inherit;cursor:pointer}.encyclopedia-inspect+.encyclopedia-source{display:block;margin-bottom:20px}
.encyclopedia-scene-tools{position:fixed;z-index:30;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:12px 16px;background:#fbfcf8;color:#214840;border:1px solid #b7cbc1;border-radius:14px;box-shadow:0 8px 32px #123f5040;font:14px/1.4 system-ui;max-width:calc(100vw - 24px)}.encyclopedia-scene-tools[hidden]{display:none}.encyclopedia-scene-tools button{min-height:44px;padding:8px 12px;border:1px solid #b7cbc1;border-radius:9px;background:white;color:#214840;font:inherit;cursor:pointer;white-space:nowrap}.encyclopedia-scene-tools button:focus-visible{outline:3px solid #cf8b27}.encyclopedia-scene-tools strong{min-width:0}@media(max-width:600px){.encyclopedia-scene-tools{bottom:max(16px,env(safe-area-inset-bottom));flex-wrap:wrap;width:calc(100vw - 24px);box-sizing:border-box}.encyclopedia-scene-tools strong{flex-basis:100%}.encyclopedia-scene-tools button{flex:1}}
