/* My Reading Room v6.4.2 — usable guided tour and functional Keeper controls.
   Presentation-only; no Supabase schema or focus data changes. */
/* Keep the tour target fully sharp and visible through the dimmed cutout. */
dialog.m64-tour-overlay{display:block!important;padding:0!important;overflow:visible!important;isolation:isolate;background:rgba(11,32,25,.63)!important}
dialog.m64-tour-overlay::backdrop{background:transparent!important;backdrop-filter:none!important}
dialog.m64-tour-overlay.m64-tour-has-target{background:transparent!important}
.m64-tour-spotlight{position:fixed!important;z-index:1;box-sizing:border-box;pointer-events:none;
 border:3px solid #f3d18c!important;border-radius:16px!important;
 box-shadow:0 0 0 150vmax rgba(11,32,25,.66),0 0 0 6px #f3d18c44!important;
 transition:none!important}
.m64-tour-spotlight[hidden]{display:none!important}
.m64-tour-card{position:fixed!important;z-index:2;box-sizing:border-box;
 max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;
 margin:0!important;padding:clamp(18px,2.8vw,27px)!important;
 border-radius:19px!important;overflow-y:auto!important;box-shadow:0 15px 55px #081d173b!important;
 background:#fffefa!important;border:1px solid #dbe3d5!important;
 color:#204839!important;overscroll-behavior:contain}
.m64-tour-card h2{font-size:clamp(22px,3vw,28px)!important;line-height:1.22!important;margin:16px 0 6px!important}
.m64-tour-card p{font-size:14px!important;line-height:1.58!important;margin:8px 0 12px!important}
.m64-tour-footer{margin-top:17px!important}
.m64-tour-header button{padding:5px 2px!important}
/* The Keeper's floating panel must fit the viewport and never be clipped. */
body #m50Dock.m50-dock{z-index:1500!important;isolation:isolate}
body #m50Popover.m50-popover:not([hidden]){
  position:fixed!important;box-sizing:border-box!important;display:block!important;
  right:16px!important;bottom:90px!important;left:auto!important;top:auto!important;
  width:min(410px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
  max-height:calc(100dvh - 120px)!important;overflow-y:auto!important;
  padding:18px!important;margin:0!important;border:1px solid #d2dfd3!important;
  border-radius:19px!important;background:#fffdf8!important;color:#224639!important;
  box-shadow:0 20px 64px #0f292b42!important;
  font:400 14px/1.5 var(--m63-sans,system-ui,sans-serif)!important;
  overflow-wrap:anywhere!important;
}
body #m50Popover .m50-pop-top{display:grid!important;grid-template-columns:58px minmax(0,1fr) 28px!important;align-items:start!important;gap:10px!important;min-width:0!important}
body #m50Popover .m50-pop-top > div{min-width:0!important}
body #m50Popover .m50-pop-top > .m64-keeper{height:58px!important;width:58px!important;min-width:0!important;padding:0!important}
body #m50Popover .m50-pop-top h3{font:700 clamp(19px,2.4vw,23px)/1.2 var(--m63-sans,system-ui)!important;margin:4px 0 6px!important;color:#173d32!important;letter-spacing:-.035em!important}
body #m50Popover .m50-pop-top p{font:400 13px/1.55 var(--m63-sans,system-ui)!important;color:#466457!important;margin:0!important}
body #m50Popover .m50-eyebrow{font:700 10px/1.4 var(--m63-sans,system-ui)!important;letter-spacing:.07em!important;color:#617b65!important}
body #m50Popover .m50-close{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:0!important;padding:0!important;margin:0!important;color:#294c40!important;font-size:22px!important}
body #m50Popover .m50-context{display:flex!important;gap:8px!important;flex-wrap:wrap!important;padding:14px 0 8px!important}
body #m50Popover .m50-context button{font:700 12px/1.3 var(--m63-sans,system-ui)!important;min-height:40px!important;white-space:normal!important;padding:9px 13px!important}
body #m50Popover .m50-pillars{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;padding:12px 0 3px!important}
body #m50Popover .m50-pillars button{display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;
 min-width:0!important;min-height:46px!important;margin:0!important;padding:9px 3px!important;
 border:1px solid #d7e3d6!important;border-radius:11px!important;background:#f3f7f0!important;
 color:#265448!important;font:650 12px/1.2 var(--m63-sans,system-ui)!important;cursor:pointer!important}
body #m50Popover .m50-pillars button:hover{background:#e3eee4!important;border-color:#9ab9a9!important}
body #m50Popover .m50-pillars button:focus-visible{outline:3px solid #d5b873!important;outline-offset:1px!important}
body #m50Popover .m50-prefs{margin-top:13px!important;padding-top:12px!important}
body #m50Popover .m50-prefs label{font-size:12px!important;line-height:1.5!important}
body #m50Popover #m64TourReplay{min-height:34px!important}
body .m64-keeper-bubble{z-index:1490}
@media(max-width:700px){
 body #m50Popover.m50-popover:not([hidden]){
  left:12px!important;right:12px!important;bottom:calc(82px + env(safe-area-inset-bottom))!important;
  width:calc(100vw - 24px)!important;max-width:none!important;
  max-height:calc(100dvh - 105px - env(safe-area-inset-bottom))!important;
  padding:16px!important
 }
 body #m50Popover .m50-pillars{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #m50Popover .m50-pillars button{min-height:44px!important;justify-content:space-between!important;padding:8px 14px!important}
 .m64-tour-card{padding:18px!important;border-radius:16px!important}
 .m64-tour-card p{font-size:13px!important}
 .m64-tour-card h2{font-size:23px!important}
}
@media(prefers-reduced-motion:reduce){.m64-tour-spotlight{transition:none!important}}
