/* Statistic page: three compact daily charts; wider tier comparisons. */
#section_prediction_home_statistic .main_section { min-width: 0; }
#section_prediction_home_statistic .index_contents > .content { width: 100%; min-width: 0; padding: 32px !important; }
#section_prediction_home_statistic .top_location_menu { margin-bottom: 24px; }
.ms-statistic { color: #282234; }
.ms-stat-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.ms-stat-heading h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.ms-stat-heading p, .ms-stat-note { color: #756e85; font-size: 12px; line-height: 1.7; }
.ms-stat-heading form { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ms-stat-heading label { font-size: 12px; }
.ms-stat-heading select { min-height: 40px; padding: 8px 32px 8px 12px; background: white; border: 1px solid #e3deed; border-radius: 8px; }
.ms-stat-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ms-stat-summary > div { padding: 22px; border: 1px solid #e8e3f1; border-radius: 16px; background: white; min-width: 0; }
.ms-stat-summary span { font-size: 13px; color: #756e85; }
.ms-stat-summary strong { display: block; font-size: 28px; margin: 10px 0; font-weight: 700; }
.ms-stat-summary small { font-size: 15px; margin-left: 5px; }
.ms-stat-summary p { font-size: 12px; color: #756e85; }
.ms-statistic .ms-positive { color: #ee535d; }
.ms-statistic .ms-negative { color: #4e8ced; }
.ms-stat-note { margin: 10px 0 20px; }
.ms-statistic h2 { font-size: 18px; font-weight: 700; margin-top: 30px; }
.ms-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ms-stat-card { background: white; border: 1px solid #e8e3f1; border-radius: 16px; padding: 20px; min-width: 0; }
.ms-stat-card h3 { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.ms-stat-card > p { font-size: 12px; color: #756e85; line-height: 1.6; min-height: 20px; margin-bottom: 16px; }
.ms-stat-chart { position: relative; height: 270px; width: 100%; }
.ms-stat-tiers .ms-stat-chart { height: 310px; }
.ms-stat-tier-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ms-stat-tier-filters button { border: 1px solid #e3deed; border-radius: 8px; padding: 8px 12px; min-height: 36px; background: white; color: #514a60; cursor: pointer; font-size: 12px; }
.ms-stat-tier-filters button::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tier-color); margin-right: 6px; }
.ms-stat-tier-filters button[aria-pressed="false"] { opacity: .5; }
.ms-stat-tier-filters button:focus-visible { outline: 2px solid #6e58e8; outline-offset: 3px; }
.ms-stat-empty { padding: 16px; border-radius: 12px; background: #f0ecfc; color: #64577c; font-size: 13px; line-height: 1.7; }
.ms-stat-table-wrap { background: white; border: 1px solid #e8e3f1; border-radius: 12px; padding: 16px; margin-top: 24px; }
.ms-stat-table-wrap summary { cursor: pointer; font-weight: 700; font-size: 13px; min-height: 28px; }
.ms-stat-table-scroll { overflow-x: auto; }
.ms-stat-table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 12px; }
.ms-stat-table-wrap caption { text-align: left; padding: 16px 0; color: #756e85; }
.ms-stat-table-wrap th, .ms-stat-table-wrap td { text-align: right; padding: 12px 8px; border-bottom: 1px solid #eeeaf3; white-space: nowrap; }
.ms-stat-table-wrap th:first-child { text-align: left; }
.ms-statistic select:focus-visible, .ms-statistic summary:focus-visible { outline: 2px solid #6e58e8; outline-offset: 3px; }
@media (min-width: 1600px) {
    .ms-stat-daily { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ms-stat-daily .ms-stat-wide { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    #section_prediction_home_statistic .left_section { width: 260px; }
    #section_prediction_home_statistic .main_section { width: calc(100% - 260px); }
}
@media (min-width: 1600px) {
    #section_prediction_home_statistic .left_section { width: 300px; }
    #section_prediction_home_statistic .main_section { width: calc(100% - 300px); }
}
@media (max-width: 1199px) {
    header .left_section_btn { display: inline-block; cursor: pointer; margin-right: 20px; vertical-align: middle; }
    #section_prediction_home_statistic .main_section { width: 100%; }
    #section_prediction_home_statistic .left_section { position: absolute; left: 0; width: 300px; transform: translateX(-300px); transition: transform .3s; z-index: 20; }
    #section_prediction_home_statistic .index_contents > .content { padding: 20px !important; }
}
@media (max-width: 699px) {
    #section_prediction_home_statistic .index_contents > .content { padding: 16px !important; }
    .ms-stat-heading { align-items: flex-start; flex-direction: column; }
    .ms-stat-heading h1 { font-size: 20px; }
    .ms-stat-summary { gap: 8px; }
    .ms-stat-summary > div { padding: 12px 8px; }
    .ms-stat-summary strong { font-size: 20px; }
    .ms-stat-summary small { font-size: 12px; margin-left: 2px; }
    .ms-stat-summary span, .ms-stat-summary p { font-size: 11px; line-height: 1.6; }
    .ms-stat-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ms-stat-card { padding: 16px; }
    .ms-stat-chart { height: 250px; }
}
