.smr-results-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:0;
    margin:0;
    padding:0;
    box-sizing:border-box;
    border-left:1px solid #c9820f;
    border-top:1px solid #c9820f;
}
.smr-results-grid.smr-count-5{grid-template-columns:repeat(5,minmax(0,1fr));}
.smr-results-grid.smr-count-6{grid-template-columns:repeat(6,minmax(0,1fr));}
.smr-results-grid.smr-count-7{grid-template-columns:repeat(7,minmax(0,1fr));}

.smr-market-section{width:100%;margin:0 0 14px;}
.smr-market-title{
    display:block;
    margin:0;
    padding:5px 8px;
    background:#F5A623;
    color:#222222;
    font:700 14px/1.2 Arial,Helvetica,sans-serif;
    text-align:left;
    box-sizing:border-box;
    border:1px solid #c9820f;
    border-bottom:0;
}

.smr-result-item{
    min-width:0;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    box-sizing:border-box;
    background:#F5A623;
    border-right:1px solid #c9820f;
    border-bottom:1px solid #c9820f;
}
.smr-result-date{
    width:100%;
    min-height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    padding:3px 2px;
    background:#F5A623;
    color:#222222;
    font-family:Arial,Helvetica,sans-serif;
    font-size:11px;
    line-height:1;
    font-weight:700;
    border-bottom:1px solid #c9820f;
    white-space:nowrap;
    overflow:hidden;
}
.smr-result-box{
    width:100%;
    min-width:0;
    height:82px;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:30px minmax(0,1fr) 30px;
    align-items:center;
    background:#F5A623;
    overflow:hidden;
    font-family:Arial,Helvetica,sans-serif;
}
.smr-panna{
    height:68px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    font-size:16px;
    line-height:1;
    font-weight:700;
    color:#222222;
    min-width:0;
}
.smr-panna span{
    display:block;
    width:100%;
    min-width:0;
    text-align:center;
    line-height:1;
}
.smr-jodi{
    min-width:0;
    width:100%;
    text-align:center;
    font-size:27px;
    line-height:1;
    font-weight:800;
    letter-spacing:-1px;
    color:#222222;
    overflow:hidden;
    white-space:nowrap;
}
.smr-open,.smr-close{
    justify-self:center;
    visibility:visible!important;
    opacity:1!important;
    display:flex!important;
}
.smr-close{visibility:visible!important;}

@media (max-width:1100px){
    .smr-results-grid.smr-count-5{grid-template-columns:repeat(5,minmax(0,1fr));}
    .smr-results-grid.smr-count-6{grid-template-columns:repeat(6,minmax(0,1fr));}
    .smr-results-grid.smr-count-7{grid-template-columns:repeat(7,minmax(0,1fr));}
}

@media (max-width:700px){
    .smr-results-grid.smr-count-5{grid-template-columns:repeat(5,minmax(0,1fr));}
    .smr-results-grid.smr-count-6{grid-template-columns:repeat(6,minmax(0,1fr));}
    .smr-results-grid.smr-count-7{grid-template-columns:repeat(7,minmax(0,1fr));}
    .smr-market-section{margin-bottom:10px;}
    .smr-market-title{
        padding:4px 5px;
        font-size:11px;
    }
    .smr-result-date{
        min-height:17px;
        padding:2px 1px;
        font-size:7px;
    }
    .smr-result-box{
        height:54px;
        grid-template-columns:11px minmax(0,1fr) 11px;
    }
    .smr-panna{
        height:43px;
        font-size:7px;
    }
    .smr-jodi{
        font-size:10px;
        letter-spacing:-.5px;
    }
}

@media (max-width:380px){
    .smr-result-date{font-size:6px;}
    .smr-result-box{
        height:50px;
        grid-template-columns:10px minmax(0,1fr) 10px;
    }
    .smr-panna{
        height:40px;
        font-size:6px;
    }
    .smr-jodi{font-size:9px;letter-spacing:-.4px;}
}

/* v2.3: strict market-specific row wrapping */
.smr-results-grid{display:grid!important;grid-auto-flow:row!important;align-items:stretch!important;justify-content:stretch!important;}
.smr-results-grid > .smr-result-item{min-width:0!important;width:100%!important;margin:0!important;}
.smr-results-grid.smr-count-5{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
.smr-results-grid.smr-count-6{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
.smr-results-grid.smr-count-7{grid-template-columns:repeat(7,minmax(0,1fr))!important;}


/* Jodi-only shortcodes */
.smr-jodi-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:0;
    margin:0;
    padding:0;
    box-sizing:border-box;
}
.smr-jodi-grid.smr-count-5{grid-template-columns:repeat(5,minmax(0,1fr));}
.smr-jodi-grid.smr-count-6{grid-template-columns:repeat(6,minmax(0,1fr));}
.smr-jodi-grid.smr-count-7{grid-template-columns:repeat(7,minmax(0,1fr));}

.smr-jodi-only{
    min-width:0;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    background:#F5A623;
    color:#222222;
    border-right:1px solid #222222;
    border-bottom:1px solid #222222;
    font-family:Arial,Helvetica,sans-serif;
    font-size:26px;
    line-height:1;
    font-weight:800;
    overflow:hidden;
}
.smr-jodi-grid > .smr-jodi-only:first-child{border-left:1px solid #222222;}

@media (max-width:700px){
    .smr-jodi-only{
        height:42px;
        font-size:15px;
    }
}
