[data-screenshot] { position: relative; display: block; width: 100%; color: inherit; cursor: zoom-in; text-decoration: none; border-radius: inherit; }
[data-screenshot]:focus-visible { outline: 3px solid #516526; outline-offset: 5px; }
[data-screenshot] > img { display: block; width: 100%; height: auto; }
.msv-hint { position: absolute; z-index: 11; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.95); color: #43551f; font: 600 12px/1.5 system-ui,sans-serif; box-shadow: 0 2px 10px #0002; pointer-events: none; }
.mapple-screenshot-viewer { box-sizing: border-box; width: min(1440px,96vw); max-width: 96vw; max-height: 94vh; max-height: 94dvh; padding: 0; margin: auto; border: 1px solid #e7ddd7; border-radius: 18px; background: #fff8f4; color: #252c21; box-shadow: 0 24px 90px #0005; }
.mapple-screenshot-viewer::backdrop { background: rgba(20,25,20,.82); }
.mapple-screenshot-viewer[open] { display: flex; flex-direction: column; }
.mapple-screenshot-viewer .msv-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; padding: 14px 18px; background: #fff8f4; }
.mapple-screenshot-viewer .msv-toolbar h2 { flex: 1 1 280px; margin: 0; font: 600 15px/1.5 system-ui,sans-serif; color: #252c21; }
.mapple-screenshot-viewer .msv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mapple-screenshot-viewer button { min-height: 44px; padding: 8px 14px; border: 1px solid #cfc8bf; border-radius: 10px; background: white; color: #39452f; cursor: pointer; font: 600 14px/1.4 system-ui,sans-serif; }
.mapple-screenshot-viewer button:focus-visible, .mapple-screenshot-viewer .msv-content:focus-visible { outline: 3px solid #516526; outline-offset: -3px; }
.mapple-screenshot-viewer .msv-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; background: #ece8e3; }
.mapple-screenshot-viewer .msv-content img { display: block; width: auto; max-width: 100%; height: auto; max-height: 72vh; max-height: 72dvh; margin: auto; object-fit: contain; }
.mapple-screenshot-viewer .msv-actual-size img { max-width: none; max-height: none; margin: 0; }
@media (max-width: 600px) {
 .mapple-screenshot-viewer .msv-toolbar { padding: 12px; gap: 10px; }
 .mapple-screenshot-viewer .msv-toolbar h2 { flex-basis: 100%; font-size: 14px; }
 .mapple-screenshot-viewer .msv-content { padding: 6px; }
 .mapple-screenshot-viewer .msv-content img { max-height: 64vh; max-height: 64dvh; }
}
