/* Extends the existing dark panels and controls; no external fonts/assets. */
.insight-panel { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); min-width: 0; }
.insight-panel h3 { margin: 0; font-size: 14px; }
.insight-panel p { margin: 7px 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.insight-panel [hidden] { display: none !important; }
.insight-toolbar, .insight-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.insight-toolbar { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.insight-toolbar button, .insight-actions button { min-height: 34px; font-size: 12px; }
.insight-toolbar button[aria-pressed="true"] { color: var(--accent, #ff6b45); border-color: var(--accent, #ff6b45); }
.insight-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.insight-note strong { color: var(--text); }
.insight-disclosure { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; }
.insight-disclosure summary { padding: 9px; font-size: 12px; }
.insight-disclosure > div, .insight-disclosure > ul { padding: 0 12px 12px; }
.insight-disclosure > ul { padding-left: 28px; }
.insight-disclosure li { margin-top: 7px; font-size: 12px; line-height: 1.5; }
.insight-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.insight-metric { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: var(--surface, var(--panel2)); min-width: 0; overflow-wrap: anywhere; }
.insight-metric dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.insight-metric dd { margin: 0; font-weight: 700; font-size: 13px; }
.insight-scroll { overflow: auto; max-width: 100%; }
.insight-compare table { width: 100%; table-layout: fixed; min-width: 540px; }
.insight-compare th, .insight-compare td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; font-size: 12px; min-width: 140px; }
.insight-compare thead th { position: static; cursor: auto; }
.insight-compare tbody th { text-align: left; padding: 9px; color: var(--muted); }
.insight-row-action { min-height: 30px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.insight-row-action[aria-pressed="true"] { border-color: var(--accent, #ff6b45); color: var(--accent, #ff6b45); }
.insight-data { margin: 0 0 14px; }
.insight-status-line { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 12px; line-height: 1.5; }
.insight-data summary { font-weight: 500; }
.insight-data details { margin-top: 8px; }
.insight-data .insight-alert { color: var(--warn, #f1bb54); }
.insight-optimization { margin: 8px 0; padding: 10px; }
.insight-optimization p { margin: 4px 0; }
.insight-optimization button { width: 100%; margin-top: 8px; }
.insight-technical-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; }
.insight-technical-grid div { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.insight-selected-caption { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.availability-cell { max-width: 180px; white-space: normal; font-size: 11px; line-height: 1.4; }
#tbody tr.selected-row { outline: 1px solid var(--accent, #ff6b45); outline-offset: -1px; }
button:focus-visible, summary:focus-visible, th:focus-visible, tr:focus-visible { outline: 2px solid var(--accent, #ff6b45); outline-offset: 2px; }
.insight-panel button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) {
  .insight-toolbar { align-items: flex-start; }
  .insight-toolbar .insight-note { flex-basis: 100%; }
  .insight-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Compact foul-drawing indicator, shared by lineup slots and player rows. */
.drawing-player-identity { display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle; }
.skill-rate { color: var(--muted, #9aa6b8); font-size: 11px; font-weight: 650; line-height: 1.35; white-space: normal; }
.drawing-player-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
button.drawing-badge {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; flex: 0 0 auto; width: 28px; height: 28px;
  min-width: 28px; min-height: 28px; padding: 4px; margin: 0 0 0 4px;
  border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--accent, #6bd6c5); cursor: pointer;
}
button.drawing-badge:hover, button.drawing-badge:focus-visible {
  border-color: currentColor; background: rgba(107, 214, 197, 0.1);
}
button.drawing-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.drawing-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button.drawing-badge[data-skill="rebounder"] svg { stroke-width: 1.35; }
.drawing-tooltip {
  position: fixed; z-index: 10000; display: grid; gap: 4px;
  max-width: calc(100vw - 16px); box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--accent, #6bd6c5); border-radius: 8px;
  background: var(--surface, #121b2a); color: var(--text, #eef2f8);
  font-size: 12px; line-height: 1.5; font-weight: 400;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.drawing-tooltip[hidden] { display: none; }
#myTeamTransferLimit { display: block; width: 100%; margin-top: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
