/* Vision Pro: fat pinch grips on mail column splitters + page-zoom control.
   Loaded from mail-base / hub base so we do not edit leased mail/index.html.twig. */

.mail-layout .resize-handle {
    width: 16px !important;
    z-index: 20;
    touch-action: none;
}
.mail-layout .resize-handle::after {
    left: 7px !important;
    width: 2px !important;
}
.mail-layout .resize-handle-h {
    height: 16px !important;
    z-index: 20;
    touch-action: none;
}
.mail-layout .resize-handle-h::after {
    top: 7px !important;
    height: 2px !important;
}

.resize-grip {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 52px;
    height: 72px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid #1976d2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    pointer-events: none;
    z-index: 21;
}
.resize-grip .material-icons { font-size: 28px; }
.resize-handle:hover .resize-grip,
.resize-handle.dragging .resize-grip,
.resize-handle-h:hover .resize-grip,
.resize-handle-h.dragging .resize-grip {
    background: #e8f0fe;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.28);
}
.resize-handle-h .resize-grip {
    left: auto;
    right: 20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}
#mail-layout.theme-dark .resize-grip {
    background: #2a2a3c;
    border-color: #7aa7e8;
    color: #7aa7e8;
}

.zoom-ctrl-page {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 4px;
    border: 1px solid #c5d8fa;
    border-radius: 6px;
    background: #f5f8ff;
}
.zoom-ctrl-page .zoom-page-label {
    font-size: 10px;
    font-weight: 700;
    color: #1565c0;
    letter-spacing: 0.3px;
    padding: 0 3px;
}
#mail-layout.theme-dark .zoom-ctrl-page {
    background: #252538;
    border-color: #3c5a8a;
}
#mail-layout.theme-dark .zoom-ctrl-page .zoom-page-label { color: #7aa7e8; }

/* Mini / Vision Pro: skip paint for off-screen rows; drop hover transitions. */
html.alyhr-mini .mail-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 36px;
    transition: none;
}
html.alyhr-mini .mail-layout-scaler {
    overflow: hidden;
}
