/* Local five-column candidate: five desktop, four tablet, two phone columns.
 * Keep the right advertising/update column in place; no percentage card widths. */
html body.home-page-shell .xl-home .xl-home-main { display: block !important; min-width: 0; }
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    grid-auto-rows: auto;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
}
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    grid-column: auto !important;
    justify-self: stretch;
    align-self: stretch;
    flex: initial;
}
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-image {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 84px;
    padding-top: 0 !important;
    aspect-ratio: 2 / 1 !important;
}
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-image-pair {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    aspect-ratio: auto;
}
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-info {
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
}
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-title-action {
    height: auto !important;
    min-height: 0;
}
html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-copy .xl-tool-title-action > h3 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
    max-height: none;
    line-height: 1.45;
    -webkit-line-clamp: unset;
}
@media (max-width: 1279px) {
    html body.home-page-shell .xl-home .xl-tool-section .xl-tool-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    html body.home-page-shell .xl-home > .wp {
        box-sizing: border-box;
        width: calc(100% - 32px) !important;
        min-width: 0;
        max-width: none;
        margin: 0 auto;
        padding: 0;
    }
    html body.home-page-shell .xl-home .xl-home-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(200px, 24%) !important;
        grid-template-rows: auto !important;
        width: 100% !important;
        max-width: none !important;
        gap: 16px;
    }
    html body.home-page-shell .xl-home .xl-home-main {
        width: 100% !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        margin: 0 !important;
    }
    html body.home-page-shell .xl-home .xl-home-hero-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 27%) !important;
        gap: 12px;
        position: relative !important;
        margin-bottom: 12px !important;
    }
    html body.home-page-shell .xl-home .xl-home-hero-row > .xl-hero { order: 0 !important; }
    html body.home-page-shell .xl-home .xl-home-time-card {
        display: block !important;
        order: 1 !important;
        position: static !important;
        inset: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-progress { display: grid !important; }
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-month,
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-date > span { display: block !important; }
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-month > span { display: inline !important; }
    html body.home-page-shell .xl-home .xl-tool-section[data-home-category-anchor],
    html body.home-page-shell .xl-home .xl-home-main > .xl-home-hero-row {
        box-sizing: border-box;
        width: 100% !important;
        margin-left: 0 !important;
        max-width: none;
    }
    html body.home-page-shell .xl-home .xl-category-rail {
        display: block !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 0 14px;
    }
    html body.home-page-shell .xl-home .xl-category-rail-track {
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-height: 0;
        padding: 4px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
    }
    html body.home-page-shell .xl-home .xl-category-rail-link {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        width: auto;
        min-height: 44px;
        padding: 0 8px;
        gap: 6px;
    }
    html body.home-page-shell .xl-home .xl-category-rail-label { font-size: 13px; white-space: nowrap; }
    html body.home-page-shell .xl-home .xl-category-rail-dot { flex-shrink: 0; }
    html body.home-page-shell .xl-home .xl-home-layout > .xl-home-side {
        display: block !important;
        position: static !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: none !important;
        padding-top: 0 !important;
        min-width: 0;
        margin: 0;
    }
    html body.home-page-shell .xl-home .xl-home-side .xl-side-updates-card {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        width: 100%;
    }
    html body.home-page-shell .xl-home .xl-home-side .xl-side-section-updates { width: 100%; min-width: 0; }
}
@media (max-width: 1000px) {
    html body.home-page-shell .xl-home .xl-home-hero-row { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 768px) and (max-width: 1000px) {
    html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-info {
        padding: 8px 6px;
        column-gap: 6px;
    }
    html body.home-page-shell .xl-home .xl-tool-section .xl-tool-card .xl-tool-copy .xl-tool-title-action > h3 {
        font-size: 14px !important;
    }
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-section {
        display: grid !important;
        grid-template-columns: 90px minmax(0, 1fr) 80px !important;
        grid-template-rows: auto !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 12px 16px !important;
    }
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-date,
    html body.home-page-shell .xl-home .xl-home-time-card .xl-time-progress,
    html body.home-page-shell .xl-home .xl-home-time-card .xl-home-signin-action {
        grid-column: auto !important; grid-row: auto !important; margin: 0 !important;
    }
}
@media (max-width: 767px) {
    html body.home-page-shell .xl-home > .wp { width: calc(100% - 24px) !important; }
    html body.home-page-shell .xl-home .xl-home-layout { grid-template-columns: minmax(0, 1fr) !important; }
    html body.home-page-shell .xl-home .xl-tool-section .xl-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
