.medal-estimate { background: #fff; color: #17253a; border: 1px solid #dde3ed; border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.medal-estimate h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.medal-estimate p { font-size: .85rem; line-height: 1.6; color: #52627a; margin: 8px 0 14px; }
.medal-estimate-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.medal-estimate-stat { border-radius: 10px; padding: 14px; background: #f1f5f9; }
.medal-estimate-stat span { font-size: .8rem; font-weight: 600; }
.medal-estimate-stat strong { display: block; font-size: 1.8rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.medal-estimate-gold { background: #fff4cf; color: #78530e; }
.medal-estimate-bronze { background: #fff0e5; color: #864323; }
.medal-estimate-total { background: #eeebff; color: #5145bb; }
.medal-estimate-scroll { overflow: auto; border: 1px solid #e1e6ef; border-radius: 10px; margin-top: 12px; }
.medal-estimate table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.medal-estimate th, .medal-estimate td { padding: 10px 12px; border-bottom: 1px solid #e6eaf1; text-align: left; vertical-align: top; }
.medal-estimate th { position: static; background: #f5f6fb; font-weight: 600; white-space: nowrap; }
.medal-estimate .medal-estimate-number, .medal-estimate th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.medal-estimate small { display: block; font-size: .75rem; color: #64748b; font-weight: 400; }
.medal-estimate summary { cursor: pointer; font-size: .9rem; font-weight: 600; padding: 12px 0; min-height: 44px; }
.medal-estimate-categories { min-width: 750px; }
.medal-estimate-categories td:first-child { min-width: 220px; }
.medal-estimate :focus-visible { outline: 3px solid #9a8bf4; outline-offset: 2px; }
@media (max-width: 600px) {
    .medal-estimate { padding: 14px; }
    .medal-estimate-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .medal-estimate-stat { padding: 12px; }
    .medal-estimate th, .medal-estimate td { padding: 8px; }
}
@media print {
    .medal-estimate { break-inside: avoid; border: 0; padding: 0; }
    .medal-estimate details { display: none; }
    .medal-estimate-scroll { overflow: visible; }
}
