.explorer-panel { display: grid; gap: 14px; }
.explorer-panel h2, .explorer-panel h3, .explorer-intro { margin: 0; }
.explorer-intro { color: var(--muted); font-size: 13px; }
.explorer-fen-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.explorer-fen-input { min-width: 0; font-family: var(--mono); font-size: 12px; }
.explorer-notice { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.explorer-notice.is-error { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); color: var(--bad); }
.explorer-opening-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.explorer-opening-info .opening-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explorer-opening-info .db-source { margin-left: auto; color: var(--muted); font-size: 12px; }
.explorer-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.explorer-stats .stat-card { display: grid; gap: 2px; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: 10px; }
.explorer-stats .stat-value { font-size: 17px; font-weight: 700; }
.explorer-stats .stat-label { color: var(--muted); font-size: 11px; }
.explorer-moves-container { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.explorer-moves-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.explorer-moves-table th, .explorer-moves-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.explorer-moves-table th:first-child, .explorer-moves-table td:first-child { text-align: left; }
.explorer-moves-table tr:last-child td { border-bottom: 0; }
.explorer-move-row { cursor: pointer; }
.explorer-move-row:hover, .explorer-move-row:focus { background: var(--panel-2); outline: none; }
.explorer-games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.explorer-games-grid section { display: grid; align-content: start; gap: 8px; min-width: 0; }
.game-list { display: grid; gap: 6px; }
.explorer-game { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.explorer-game:hover { border-color: var(--accent); }
.explorer-game-meta { color: var(--muted); font-size: 11px; }
.no-moves { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .explorer-fen-row { grid-template-columns: 1fr 1fr; }
  .explorer-fen-input { grid-column: 1 / -1; }
  .explorer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer-games-grid { grid-template-columns: 1fr; }
}
