.cmdm-tour .tour-extra-controls{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin:.6rem 0}.cmdm-tour .tour-extra-controls button,.cmdm-tour-dialog button{background:#19374b;color:#fff;border:1px solid #19374b;border-radius:4px;padding:.6rem .8rem;cursor:pointer}.cmdm-tour .tour-extra-controls button:disabled{opacity:.5;cursor:default}.cmdm-tour-dialog{max-width:min(900px,92vw);width:100%;max-height:88vh;overflow:auto;background:#fff;color:#222;border:1px solid #aaa;padding:1.2rem;box-sizing:border-box}.cmdm-tour-dialog::backdrop{background:#1119}.cmdm-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.cmdm-tour-dialog svg{display:block;width:100%;max-height:55vh;margin:1rem 0}.cmdm-tour-dialog details,.tour-info details{margin:.5rem 0;border:1px solid #ccc;padding:.65rem}.cmdm-tour-dialog summary,.tour-info summary{cursor:pointer;font-weight:600}.cmdm-tour-dialog img,.cmdm-tour-dialog video,.tour-info video,.tour-info audio,.cmdm-tour-dialog audio{max-width:100%;height:auto}.cmdm-tour-dialog img{display:block;max-height:70vh;object-fit:contain}.cmdm-document-page{overflow:auto;max-height:65vh}.cmdm-document-page img{display:block;max-height:none!important;height:auto}.cmdm-reader-controls{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.cmdm-compare{position:relative;display:grid;aspect-ratio:4/3;background:#ddd;overflow:hidden}.cmdm-compare img{grid-area:1/1;width:100%;height:100%;object-fit:contain}.cmdm-compare+input{width:100%}.cmdm-tour-dialog :focus-visible,.tour-extra-controls :focus-visible{outline:3px solid #b98c36;outline-offset:3px}.cmdm-tour-dialog p{white-space:pre-line}

.cmdm-hotspots{position:absolute;inset:0;pointer-events:none;z-index:3}.cmdm-hotspots button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;background:#19374b;color:#fff;border:2px solid #fff;width:32px;height:32px;border-radius:50%;font-weight:bold;font-size:20px;line-height:24px;padding:0;box-shadow:0 1px 5px #0007}.cmdm-hotspots button[hidden]{display:none}.cmdm-hotspot-reading{border-left:3px solid #b49660;padding:.5rem .75rem;margin:.5rem 0}

.cmdm-door-choices{display:flex;flex-wrap:wrap;gap:.45rem;margin:.5rem 0}.cmdm-door-choices button{border:1px solid #bbb;background:#fff;color:#19374b;padding:.45rem .65rem;border-radius:4px}

.cmdm-map-scroll{overflow:auto;max-height:60vh}.cmdm-tour-dialog.cmdm-high-contrast{background:#000;color:#fff}.cmdm-tour-dialog.cmdm-high-contrast a{color:#ffdc75}.cmdm-tour-dialog.cmdm-high-contrast button{background:#fff;color:#000}.cmdm-tour-dialog.cmdm-large-text{font-size:1.25rem}.cmdm-tour-dialog.cmdm-large-text p{font-size:1.25rem}.tour-extra-controls label{display:flex;align-items:center;gap:.3rem}
