/* V22 additive responsive layer. Intentionally no upload or account styling overrides. */
:root { --v22-safe-top:env(safe-area-inset-top, 0px); --v22-safe-bottom:env(safe-area-inset-bottom, 0px); }
#v22-close-tool { position:fixed; z-index:100010; top:max(8px,var(--v22-safe-top)); left:max(8px,env(safe-area-inset-left, 0px)); background:#8e2335; color:white; border:2px solid #fff; border-radius:24px; min-width:112px; min-height:42px; padding:8px 12px; font:inherit; font-size:13px; font-weight:750; box-shadow:0 3px 16px #0004; cursor:pointer; touch-action:manipulation; }
#v22-close-tool:focus-visible, #v21-tool-overlay button:focus-visible {outline:3px solid #ffc857;outline-offset:2px;}
body:has(#v21-tool-overlay) .v213-exit { display:none!important; }
#v21-tool-overlay { position:fixed!important; inset:0!important; max-width:100vw!important; max-height:100dvh!important; box-sizing:border-box; }
#v21-tool-overlay .v21-tool-sheet { box-sizing:border-box; min-height:0!important; display:flex!important; flex-direction:column!important; }
#v21-tool-overlay .v21-geo-host { min-height:0!important; flex:1 1 auto!important; overflow:hidden!important; width:100%!important; }
#v21-tool-overlay .v21-geo-host iframe {width:100%!important; height:100%!important;display:block;}
#v21-tool-overlay #v21-calc-mount { min-height:0; flex:1 1 auto; overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch; }
.v22-table-sort,.v22-image-filter {display:flex;align-items:center;gap:10px; flex-wrap:wrap; margin:12px 0; padding:10px 12px; background:#f1f8f6;border:1px solid #b7d8d0;border-radius:12px;max-width:100%;box-sizing:border-box;}
.v22-table-sort select,.v22-image-filter input {min-height:40px;max-width:100%;box-sizing:border-box;flex:1 1 180px;}
.v22-image-filter small {font-variant-numeric:tabular-nums;white-space:nowrap;}
.image-card[hidden] {display:none!important;}
@media(max-width:850px){
 #v21-tool-overlay {padding:0!important;}
 #v21-tool-overlay .v21-tool-sheet {width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;}
 #v21-tool-overlay .v21-tool-head {flex:0 0 auto!important;padding-inline-start:132px!important; padding-block-start:max(6px,var(--v22-safe-top))!important;}
 #v21-tool-overlay .v21-tool-head>div{display:flex;flex-wrap:wrap;gap:4px;}
 .v213-content-tools,.v21-bulk-toolbar,.v213-folder-tools {max-width:100%;box-sizing:border-box;}
 .v213-content-tools button,.v21-bulk-toolbar button {min-height:40px;}
}
@media(max-width:950px) and (orientation:landscape){
 #v21-tool-overlay .v21-tool-head {padding-top:4px!important;padding-bottom:4px!important;min-height:40px!important;}
 #v21-tool-overlay .v21-geogebra-info {font-size:11px!important;padding:2px 8px!important;line-height:1.25!important;}
 #v22-close-tool {top:max(3px,var(--v22-safe-top));padding:4px 9px;min-height:34px;}
 #v21-tool-overlay .v21-tool-head button {min-height:32px!important;}
}
@media(prefers-reduced-motion:reduce){#v22-close-tool{transition:none!important}}
