.eip-page { color: #1e3d59; }
.eip-intro {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  padding: 15px 20px; margin-bottom: 16px; background: #f8f9fa;
  border: 1px solid #dee2e6; border-radius: 8px; font-size: 14px;
}
.eip-intro-label { font-weight: 600; }
.eip-formula { font-weight: 700; color: #1e3d59; }
.eip-subtitle { font-size: 12px; color: #6c757d; }
.eip-card { border: 0; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.eip-card .card-body { padding: 18px 20px; }
.eip-selector-card { background: #f8f9fa; border: 1px solid #e9ecef; box-shadow: none; }
.eip-section-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.eip-photos { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 3px; padding-bottom: 4px; }
.eip-photo-button {
  display: flex; align-items: center; flex-direction: column; gap: 4px;
  flex: 0 0 60px; width: 60px; min-height: 78px; padding: 6px 4px; border: 1px solid transparent;
  border-radius: 10px; background: transparent; cursor: pointer; color: #495057;
}
.eip-photo-button:hover { background: #eaf3fc; }
.eip-photo-button-active { background: #e7f1fa; border-color: #1e3d59; }
.eip-photo { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid #d5dfe9; }
.eip-photo-button-active .eip-photo { border-color: #1e3d59; }
.eip-photo-name { width: 58px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 9px; font-weight: 650; line-height: 1.15; }
.eip-empty { padding: 22px; text-align: center; color: #8492a0; font-size: 13px; }
.eip-reference {
  border-radius: 12px; background: linear-gradient(135deg,#f0f7ff 0%,#fff 100%);
  box-shadow: 0 2px 8px rgba(30,61,89,.08); border-left: 4px solid #1e3d59; overflow: hidden;
}
.eip-reference-row { display: flex; align-items: stretch; }
.eip-selected-player {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 38px 12px 16px;
  flex: 0 0 auto; min-width: 220px; border-right: 1px solid #e9ecef;
}
.eip-selected-photo { width: 56px; height: 56px; object-fit: cover; border-radius: 50%;
  border: 3px solid #1e3d59; box-shadow: 0 2px 8px rgba(30,61,89,.2); }
.eip-selected-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.eip-selected-position { color: #6c757d; font-size: 11px; font-weight: 500; }
.eip-status { display: inline-block; color: #60758b; font-size: 10px; margin-top: 3px; }
.eip-help-button {
  position: absolute; top: 10px; right: 9px; width: 23px; height: 23px;
  border: 1px solid #1e3d59; border-radius: 50%; background: #fff;
  color: #1e3d59; font-size: 13px; font-weight: 700; line-height: 19px;
  text-align: center; cursor: pointer;
}
.eip-help-button:hover { background: #1e3d59; color: #fff; }
.eip-ref-panel { flex: 1; min-width: 0; padding: 8px 12px 6px; }
.eip-ref-heading { font-size: 10px; color: #6c757d; font-weight: 600;
  margin-bottom: 4px; letter-spacing: .3px; text-transform: uppercase; }
.eip-ref-metrics { display: flex; align-items: stretch; width: 100%; background: #fff;
  border: 1px solid #e9ecef; border-radius: 6px; overflow: hidden; }
.eip-ref-metric { text-align: center; padding: 6px 8px; flex: 1; min-width: 0;
  border-left: 1px solid #e9ecef; }
.eip-ref-metric:first-child { border-left: 0; }
.eip-ref-label { font-size: 10px; font-weight: 600; color: #495057; line-height: 1.2; }
.eip-ref-value { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.eip-match-table { font-size: 12px; }
.eip-review { color: #a86213; font-weight: 700; }
.eip-help-player { color: #1e3d59; font-weight: 700; }
.eip-week-title { font-size: 20px; font-weight: 700; margin: 8px 0 16px; }
.eip-week-selector { width: 100%; }
.eip-week-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.eip-detail-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.eip-metric-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.eip-raw-details summary {
  list-style: none; cursor: pointer; width: 100%; margin-bottom: 16px;
  border: 2px solid #1e3d59; border-radius: 8px; padding: 10px 20px;
  color: #1e3d59; background: #fff; font-weight: 600; text-align: center;
}
.eip-raw-details summary::-webkit-details-marker { display: none; }
.eip-raw-details summary:hover { background: #f0f7ff; }
@media (max-width: 1100px) {
  .eip-reference-row { flex-direction: column; }
  .eip-selected-player { border-right: 0; border-bottom: 1px solid #e9ecef; }
}
@media (max-width: 700px) {
  .eip-ref-metrics { flex-wrap: wrap; }
  .eip-ref-metric { flex: 1 1 33%; }
}
