/* Complete dashboard captures share one image area; the slide never changes its height. */
.dashboard-carousel{max-width:826px;min-width:0;margin-inline:auto}
.dashboard-carousel-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}
.dashboard-carousel-current{min-width:0;line-height:1.45}
.dashboard-carousel-current strong{display:block;color:var(--ink,#081629);font-size:1.1rem;font-weight:800}
.dashboard-carousel-current span{display:block;margin-top:4px;color:#475e79;font-size:.875rem;font-variant-numeric:tabular-nums}
.dashboard-carousel-controls{display:flex;flex-shrink:0;gap:8px}
.dashboard-carousel-arrow{display:grid;place-items:center;width:48px;min-width:48px;height:48px;padding:10px;border:1px solid #37506d;border-radius:8px;background:var(--panel,#122b46);color:var(--paper,#f5f8ff)}
.dashboard-carousel-arrow svg{width:22px;height:22px}
.dashboard-carousel-arrow[aria-disabled=true]{background:#e5ebf3;color:#5c7089;border-color:#b5c2d3;cursor:default}
.dashboard-carousel-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
.dashboard-carousel [data-carousel-target]{min-width:0;min-height:44px;padding:10px 8px;border:1px solid #a9b9cc;border-radius:6px;background:#f5f8ff;color:#29435f;font:inherit;font-size:.875rem;font-weight:650;line-height:1.3;text-align:center;cursor:pointer}
.dashboard-carousel [data-carousel-target][aria-pressed=true]{background:var(--panel,#122b46);border-color:var(--panel,#122b46);color:var(--paper,#f5f8ff)}
.dashboard-carousel-arrow:focus-visible,.dashboard-carousel-track:focus-visible,.dashboard-carousel [data-carousel-target]:focus-visible{outline:3px solid #ad50ae;outline-offset:3px}
.dashboard-carousel-track{position:relative;display:flex;align-items:stretch;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:4px 0 12px;outline-offset:4px}
.dashboard-carousel-track::-webkit-scrollbar{display:none;width:0;height:0}
.dashboard-carousel-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;margin:0}
.dashboard-carousel-slide .image-open{display:grid;grid-template-rows:auto 48px;width:100%;border:1px solid #c7d0da;border-radius:12px;background:var(--ink,#081629)}
.dashboard-carousel-slide .image-open:focus-visible{outline:3px solid #ad50ae;outline-offset:-4px}
.dashboard-carousel-slide img{display:block;width:100%;height:auto;aspect-ratio:826 / 469;object-fit:contain;object-position:center;background:#081629}
.dashboard-carousel-slide .image-action{min-height:48px;height:48px}
.dashboard-carousel [data-carousel-description]:not([data-carousel-slide]){min-height:3.3em;margin:12px 0 0;color:#29435f;font-size:.94rem;line-height:1.65}
.dashboard-carousel-caption{margin:8px 0 0;color:#475e79;font-size:.875rem;line-height:1.65}

/* The native dialog owns focus; only its image stage scrolls. */
.media-dialog{position:fixed;inset:0;width:min(1120px,calc(100% - 48px));height:92dvh;max-width:none;max-height:92dvh;box-sizing:border-box;margin:auto;padding:24px;border:1px solid #37506d;border-radius:12px;background:#081629;color:#f5f8ff;overflow:hidden}
.media-dialog[open]{display:block}
.media-dialog::backdrop{background:rgb(2 10 22 / .92)}
.dialog-content{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0;height:100%}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.dialog-heading h2{min-width:0;margin:0;font-size:1.15rem;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere}
.dialog-close,.dialog-zoom,.dialog-fullscreen{min-height:44px;padding:10px 14px;border:1px solid #7e96b3;border-radius:6px;background:#122b46;color:#f5f8ff;font:inherit;font-size:.875rem;font-weight:700;line-height:1.35;cursor:pointer}
.dialog-close{flex-shrink:0;background:#f5f8ff;color:#081629;border-color:#f5f8ff;white-space:nowrap}
.dialog-close span{font-size:1.25rem;line-height:1;margin-left:8px}
.dialog-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dialog-zoom[aria-pressed=true]{color:#081629;background:#36d7f2;border-color:#36d7f2}
.dialog-close:focus-visible,.dialog-zoom:focus-visible,.dialog-fullscreen:focus-visible,.dialog-image-stage:focus-visible{outline:3px solid #ee83e8;outline-offset:3px}
.dialog-instructions{margin:0;color:#bacbdd;font-size:.875rem;line-height:1.5}
.dialog-image-stage{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#7e96b3 #122b46;scrollbar-width:thin;background:#122b46;border-radius:4px}
.dialog-image-stage img{display:block;max-width:100%;width:auto;height:auto;max-height:none;object-fit:contain;margin-inline:auto}
.dialog-image-stage img[hidden]{display:none}
.dialog-image-stage.is-zoomed{cursor:grab}
.dialog-image-stage.is-zoomed img{max-width:none;max-height:none;width:auto;height:auto;margin:0;user-select:none;-webkit-user-drag:none}
.dialog-image-stage.is-panning{cursor:grabbing;user-select:none}
.media-dialog [data-dialog-caption]{margin:0;color:#bacbdd;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.dialog-content:fullscreen{width:100%;height:100dvh;box-sizing:border-box;padding:24px;background:#081629;color:#f5f8ff}
.dialog-content::backdrop{background:#081629}
@media(hover:hover){.dashboard-carousel-arrow:hover:not([aria-disabled=true]){background:#234566}.dashboard-carousel [data-carousel-target]:hover{border-color:#29435f}.dialog-close:hover{background:#dce9f5}.dialog-zoom:hover,.dialog-fullscreen:hover{border-color:#36d7f2}}
@media(min-width:760px){.dashboard-carousel-nav{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-carousel [data-carousel-target]{padding:8px 4px;font-size:.8125rem;overflow-wrap:anywhere}.media-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));border:0;border-radius:0}.dialog-content{gap:8px}.dialog-heading{gap:8px}.dialog-heading h2{font-size:1rem}.dialog-close{padding:10px 12px}.dialog-zoom{width:100%;text-align:center}.dialog-controls{display:block}.dialog-fullscreen{display:none}.dialog-instructions,.media-dialog [data-dialog-caption]{font-size:.8125rem}.dialog-content:fullscreen{padding:12px}}
@media(max-width:500px){.dashboard-carousel-header{gap:12px;margin-bottom:12px}.dashboard-carousel-current strong{font-size:1rem}.dashboard-carousel-arrow{width:44px;min-width:44px;height:44px}.dashboard-carousel-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.dashboard-carousel-slide .image-open{border-radius:8px}.dashboard-carousel [data-carousel-description]:not([data-carousel-slide]){min-height:5em;font-size:.875rem}.dashboard-carousel-caption{font-size:.8125rem}}

