#hotspot-layer{position:absolute;inset:0;z-index:8;pointer-events:none}.hotspot-marker{position:absolute;transform:translate(-50%,-50%);width:40px;height:40px;border:1px solid var(--ui-border);border-radius:50%;background:var(--ui-bg);color:var(--ui-text);backdrop-filter:blur(var(--ui-blur));display:grid;place-items:center;padding:0;cursor:pointer;pointer-events:auto}.hotspot-marker svg{width:24px;height:24px}.hotspot-marker:hover{background:#353b43}.hotspot-marker:focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}.placing .hotspot-marker{pointer-events:none}.hotspot-placing canvas{cursor:crosshair}
.hotspot-popup{position:absolute;z-index:20;left:0;top:0;width:340px;max-width:calc(100% - 24px);max-height:55%;overflow:auto;box-sizing:border-box;padding:16px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-bg);color:var(--ui-text);backdrop-filter:blur(var(--ui-blur));font:var(--ui-font);box-shadow:0 8px 32px #0004}.hotspot-popup>button{float:right;width:44px;height:44px;margin:-8px -8px 4px 8px}.hotspot-popup h2{font-size:16px;font-weight:600;margin:0 0 12px;overflow-wrap:anywhere}.hotspot-popup p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:0}.hotspot-placement{position:absolute;z-index:22;left:50%;transform:translateX(-50%);top:70px;display:flex;align-items:center;gap:12px;max-width:calc(100% - 24px);padding:8px 12px;box-sizing:border-box;border-radius:var(--ui-radius);background:var(--ui-bg);color:var(--ui-text);font:var(--ui-font)}.hotspot-placement button{min-height:44px;border:1px solid var(--ui-border);border-radius:8px;background:transparent;color:inherit;padding:6px 12px;cursor:pointer}
@media(max-width:600px){.hotspot-marker{width:44px;height:44px}.hotspot-placement{width:calc(100% - 24px);top:76px}}

.hotspot-placing #markers button,.hotspot-placing .standalone-portals button{pointer-events:none!important}
.hotspot-popup.has-media{width:440px;max-height:75%}.hotspot-media:empty{display:none}.hotspot-media{margin:0 0 12px}.hotspot-media img{display:block;width:100%;max-height:250px;object-fit:contain;border-radius:6px}.hotspot-media-stage.expanded img{max-height:60vh}.hotspot-media video,.hotspot-media iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:6px;background:#000}.hotspot-media audio{width:100%;display:block;margin:8px 0}.hotspot-media button{min-height:36px;background:#ffffff12;color:inherit;border:1px solid var(--ui-border);border-radius:6px;padding:6px 10px;cursor:pointer}.hotspot-media-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0}.hotspot-media .hotspot-media-caption{font-size:13px;margin:6px 0}.hotspot-media-error{font-size:13px;color:#ffbd9b}.hotspot-media-audio{margin-top:8px}
@media(max-width:600px){.hotspot-popup.has-media{width:calc(100% - 24px);max-height:75%}.hotspot-media img{max-height:220px}}

.hotspot-media-stage{position:relative;min-height:80px}
.hotspot-media-nav{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);margin:0;pointer-events:none}
.hotspot-media .media-arrow{pointer-events:auto;position:absolute;top:0;transform:translateY(-50%);width:36px;height:44px;padding:0;border:0;background:#0005;border-radius:5px}
.hotspot-media .media-arrow.previous{left:5px}
.hotspot-media .media-arrow.next{right:5px}
.hotspot-media .media-arrow::after{content:"";display:block;width:12px;height:12px;border-top:2px solid white;border-right:2px solid white;margin:auto;transform:rotate(45deg)}
.hotspot-media .media-arrow.previous::after{transform:rotate(-135deg)}
.hotspot-media .media-arrow:hover,.hotspot-media .media-arrow:focus-visible{background:#0009}
.hotspot-media-count{display:block;text-align:center;font-size:12px;opacity:.7}

.hotspot-action{display:block;overflow-wrap:anywhere;color:var(--ui-text);margin:12px 0;line-height:1.5}
.hotspot-pdf{padding:10px;border:1px solid var(--ui-border);border-radius:6px;text-decoration:none}
.hotspot-cta{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:10px 16px;border-radius:8px;background:#2672be;color:white;text-decoration:none;font-weight:600;text-align:center}
.hotspot-action:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
.hotspot-cta:hover{background:#3585d5}
.hotspot-details{margin:12px 0 0}.hotspot-popup>button{position:sticky;top:-8px;background:var(--ui-bg);z-index:2}
/* Reserve identical image/video space before decoding, independent of file shape. */
.hotspot-media-stage{height:250px;min-height:250px;background:#0003;border-radius:6px;overflow:hidden}
.hotspot-media-stage img,.hotspot-media-stage video,.hotspot-media-stage iframe{height:100%;max-height:none;object-fit:contain;aspect-ratio:auto}
.hotspot-media-stage>button{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);background:#17212ce6;white-space:nowrap}
.hotspot-overlay{position:absolute;inset:0;z-index:40;background:#0007;display:flex;justify-content:center;align-items:center;padding:20px;box-sizing:border-box}
.hotspot-preview{position:relative;box-sizing:border-box;width:min(820px,92%);max-height:88%;padding:12px;border-radius:12px;background:#18212d;color:#fff;box-shadow:0 12px 48px #0008}
.image-preview img{display:block;width:100%;height:min(500px,65vh);object-fit:contain;cursor:zoom-out}
.hotspot-preview .preview-close{display:block;margin:8px auto 0;padding:8px 16px;min-height:40px;background:#ffffff18;color:white;border:1px solid #ffffff40;border-radius:6px;cursor:pointer}
.web-preview{width:88%;height:82%;display:flex;flex-direction:column;gap:8px}.web-preview>p{font-size:13px;margin:0;padding:2px 8px}
.website-preview-surface{position:relative;flex:1;min-height:0}.website-preview-surface iframe{width:100%;height:100%;border:0;background:white;border-radius:6px}.website-preview-open{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:12px;color:white;text-decoration:none;background:linear-gradient(transparent 85%,#17212de6);font-size:14px}
.hotspot-inline-link{font-weight:700;color:#69b4ff;text-decoration:underline;cursor:pointer}.hotspot-pdf .hotspot-action{display:inline-block;margin:8px 16px 0 0}.hotspot-pdf-download{font-size:13px}
@media(max-width:600px){.hotspot-media-stage{height:220px;min-height:220px}.hotspot-overlay{padding:10px}.hotspot-preview{width:96%}.image-preview img{height:55vh}.web-preview{height:82%}}
