/* Visual markers and invisible touch areas are independent. */
.selene-app .selene-point,.selene-app .selene-point:hover,.selene-app .selene-point:active{width:40px;height:40px;min-width:40px;padding:0;background:transparent;border:0;box-shadow:none}
.selene-app .selene-point:after,.selene-anchor-marker{content:'';position:absolute;left:50%;top:50%;width:var(--selene-marker-free-size,18px);height:var(--selene-marker-free-size,18px);box-sizing:border-box;border-radius:50%;transform:translate(-50%,-50%);background:var(--selene-marker-free-fill,#edeae2);border:var(--selene-marker-free-border-width,2px) solid var(--selene-marker-free-border,#8564a9);opacity:var(--selene-marker-free-opacity,.55);pointer-events:none}
.selene-app .selene-point[data-occupied=true]:after,.selene-anchor-marker.is-occupied{width:var(--selene-marker-occupied-size,3px);height:var(--selene-marker-occupied-size,3px);background:var(--selene-marker-occupied-fill,#8564a9);opacity:var(--selene-marker-occupied-opacity,.45);border:0}
.selene-anchor-marker{z-index:2}
.selene-app .selene-zoom-open,.selene-zoom-demo .selene-zoom-open{position:absolute;right:7px;top:7px;z-index:4;width:44px;height:44px;min-width:44px;padding:10px;border:0;border-radius:0;background:#edeae2;color:#8564a9;box-shadow:2px 3px 7px #0002;display:inline-flex;align-items:center;justify-content:center}
.selene-zoom-open svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.selene-zoom-open,.selene-zoom-dialog button,.selene-zoom-slider{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.selene-app:not([data-step=jewel]) .selene-zoom-open{display:none}
@media(min-width:761px){.selene-app .selene-zoom-open{display:none}.selene-zoom-demo .selene-zoom-open{display:inline-flex}}
.selene-zoom-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(100vw,720px);height:min(100dvh,920px);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:0;background:#edeae2;color:#572985;font:14px/1.45 system-ui,sans-serif;overflow:hidden}
.selene-zoom-dialog[open]{display:flex;flex-direction:column}
.selene-zoom-dialog::backdrop{background:#32183b80}
.selene-zoom-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #8564a926;flex:0 0 auto}
.selene-zoom-header h2{margin:0;font:24px/1.2 Georgia,serif;color:#572985}
.selene-zoom-dialog button{font:inherit;border:0;border-radius:0;background:transparent;color:#8564a9;padding:8px;min-width:44px;min-height:44px;cursor:pointer}
.selene-zoom-header button{font-size:32px;line-height:1}
.selene-zoom-dialog button:focus-visible,.selene-zoom-slider:focus-visible{outline:2px solid #8564a9;outline-offset:2px}
.selene-zoom-dialog button:disabled{opacity:.4;cursor:default}
.selene-zoom-viewport{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background:#edeae2;cursor:grab}
.selene-zoom-viewport:active{cursor:grabbing}
.selene-zoom-picture{position:absolute;left:0;top:0;display:block;max-width:none;max-height:none;transform-origin:0 0;user-select:none;pointer-events:none}
.selene-zoom-footer{flex:0 0 auto;padding:8px 16px 12px;border-top:1px solid #8564a926;background:#edeae2}
.selene-zoom-actions{display:flex;align-items:center;justify-content:center;gap:9px}
.selene-zoom-actions>button:not(.selene-zoom-reset){font-size:28px}
.selene-zoom-actions output{min-width:58px;text-align:center;color:#572985}
.selene-zoom-dialog .selene-zoom-reset{margin-left:auto;text-decoration:underline}
.selene-zoom-slider{display:block;width:100%;accent-color:#8564a9;margin:5px 0 10px}
.selene-zoom-hint{margin:0;text-align:center;font-size:12px;color:#572985}
