/* Mobile fallback for Analyzer Hub.
   Loaded globally so phones do not fall back to plain text if an older isolated
   stylesheet is cached. */
@media (max-width: 767.98px) {
    .analyzer-hub-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-height: calc(100dvh - 64px) !important;
        padding: 0 !important;
        color: #0f172a !important;
        overflow-x: hidden !important;
    }

    .analyzer-hub-hero {
        display: block !important;
        margin: 0 0 0.75rem !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.94), rgba(20, 184, 166, 0.94)) !important;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16) !important;
    }

    .analyzer-hub-kicker {
        display: block !important;
        margin-bottom: 0.35rem !important;
        color: rgba(255, 255, 255, 0.86) !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        text-transform: uppercase !important;
    }

    .analyzer-hub-hero h1,
    .analyzer-hub-hero h3,
    .analyzer-hub-hero p {
        max-width: 100% !important;
    }

    .analyzer-hub-hero h1 {
        margin: 0 !important;
        color: #ffffff !important;
        font-size: 1.7rem !important;
        line-height: 1.1 !important;
        font-weight: 850 !important;
    }

    .analyzer-hub-hero h3 {
        margin: 0.55rem 0 0 !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        line-height: 1.35 !important;
        font-weight: 750 !important;
    }

    .analyzer-hub-hero p {
        margin: 0.55rem 0 0 !important;
        color: rgba(255, 255, 255, 0.88) !important;
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
    }

    .analyzer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.7rem !important;
        width: 100% !important;
    }

    .analyzer-card {
        min-height: 96px !important;
        display: grid !important;
        grid-template-columns: 2.55rem minmax(0, 1fr) 1.4rem !important;
        align-items: center !important;
        gap: 0.7rem !important;
        width: 100% !important;
        padding: 0.85rem !important;
        color: #111827 !important;
        text-decoration: none !important;
        border: 1px solid rgba(15, 23, 42, 0.09) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    }

    .analyzer-card-primary {
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.16) !important;
        background: linear-gradient(135deg, #0f172a, #155e75) !important;
    }

    .analyzer-card-wide {
        grid-column: 1 / -1 !important;
    }

    .analyzer-card-icon {
        width: 2.45rem !important;
        height: 2.45rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #0ea5e9, #14b8a6) !important;
        box-shadow: 0 8px 18px rgba(14, 165, 233, 0.22) !important;
    }

    .analyzer-card-primary .analyzer-card-icon {
        color: #155e75 !important;
        background: #ffffff !important;
    }

    .analyzer-card-body {
        min-width: 0 !important;
        display: grid !important;
        gap: 0.25rem !important;
    }

    .analyzer-card-title {
        display: block !important;
        color: inherit !important;
        font-size: 0.98rem !important;
        font-weight: 850 !important;
        line-height: 1.2 !important;
    }

    .analyzer-card-copy {
        display: block !important;
        color: #475569 !important;
        font-size: 0.84rem !important;
        line-height: 1.3 !important;
    }

    .analyzer-card-primary .analyzer-card-copy {
        color: rgba(255, 255, 255, 0.78) !important;
    }

    .analyzer-card-arrow {
        justify-self: end !important;
        color: #0ea5e9 !important;
    }

    .analyzer-card-primary .analyzer-card-arrow {
        color: #ffffff !important;
    }
}

@media (max-width: 390px) {
    .analyzer-card {
        grid-template-columns: 2.35rem minmax(0, 1fr) 1.2rem !important;
        padding: 0.75rem !important;
    }

    .analyzer-card-icon {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
}
