/* Personal records only: do not restyle comparison, rankings or the BP room. */
#stats-personal .stats-filter-console {
  margin: 0 0 22px;
  padding: 20px 22px 12px;
  border: 1px solid #6d62433d;
  border-top-color: #b498585e;
  border-radius: 12px;
  background: radial-gradient(ellipse at 0 0, #b99a4f0c, transparent 55%), #0d1721;
}
#stats-personal .stats-filter-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) minmax(350px, 2fr) minmax(160px, .85fr);
  align-items: end;
  gap: 24px;
}
#stats-personal .stats-filter-field { display: block; min-width: 0; margin: 0; }
#stats-personal .stats-filter-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #a9b7c2;
  font-size: 12px;
  line-height: 1.2;
}
#stats-personal .stats-filter-caption small { color: #687d8d; font-size: 9px; letter-spacing: 1.6px; }
#stats-personal .stats-filter-event .stats-filter-caption { color: #d2b77d; }
#stats-personal .stats-filter-select,
#stats-personal .stats-favorite-picker { display: block; position: relative; min-width: 0; }
#stats-personal .stats-filter-chevron {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-58%);
  color: #9d9275;
  pointer-events: none;
  font-size: 20px;
}
#stats-personal .stats-filter-select select {
  display: block;
  appearance: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 48px;
  padding: 0 38px 0 16px;
  border: 1px solid #344550;
  border-radius: 7px;
  background: #0a121a;
  color: #dce4ec;
  font-size: 14px;
  cursor: pointer;
  text-overflow: ellipsis;
}
#stats-personal .stats-filter-event select {
  background: linear-gradient(105deg, #b8974020, #b8974005);
  color: #efdaaa;
  border-color: #b296555e;
  font-size: 17px;
  font-weight: 650;
}
#stats-personal .stats-filter-console select option { background: #101c28; color: #e4eaf1; }
/* Six equal slots share the existing select/change API and keyboard tab helper. */
#stats-personal #stats-personal-lanes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  height: 48px;
  margin: 0;
  padding: 4px;
  border: 1px solid #344550;
  border-radius: 7px;
  background: #0a121a;
  overflow: visible;
}
#stats-personal #stats-personal-lanes button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: 38px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #97a9b8;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: none;
}
#stats-personal #stats-personal-lanes button:hover { color: #ecdbb3; background: #e7c9840a; }
#stats-personal #stats-personal-lanes button[aria-selected="true"] {
  background: linear-gradient(135deg, #ddbd7936, #ddbd7918);
  color: #f1d79d;
  border-color: #bd9e534d;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffe5a911;
}
#stats-personal .stats-filter-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #52616c38;
}
#stats-personal .stats-filter-tools button,
#stats-personal .stats-filter-tools select {
  min-height: 34px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #9baebb;
  font-size: 12px;
}
#stats-personal .stats-filter-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
#stats-personal .stats-filter-tools button>span { color: #d2b77d; font-size: 17px; line-height: 1; }
#stats-personal .stats-filter-tools button:hover { border-color: #aa925352; color: #f0d79f; background: #c7a65b0a; }
#stats-personal .stats-favorite-picker { width: 205px; }
#stats-personal #vip-favorites {
  appearance: none;
  width: 100%;
  max-width: none;
  padding-right: 32px;
  background: #09121a;
  border-color: #31414d;
  cursor: pointer;
  text-overflow: ellipsis;
}
#stats-personal .stats-favorite-picker .stats-filter-chevron { font-size: 16px; right: 11px; }
#stats-personal #vip-unfavorite { color: #80919f; }
#stats-personal #vip-share { margin-left: auto; color: #dec48d; }
#stats-personal #vip-share small {
  font-size: 10px;
  font-weight: 600;
  color: #d1b375;
  background: #d5b46c12;
  padding: 2px 5px;
  border: 1px solid #b49b623d;
  border-radius: 4px;
}
#stats-personal #vip-stats-message { flex: 1 0 100%; min-width: 0; color: #b5c4cf; font-size: 12px; overflow-wrap: anywhere; }
#stats-personal #vip-stats-message:empty { display: none; }
#stats-personal .stats-filter-console :focus-visible { outline: 2px solid #ddbf7a; outline-offset: 3px; }
/* Keep controls legible on narrow desktops rather than squeezing six lanes. */
@media (max-width: 1200px) {
  #stats-personal .stats-filter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
  #stats-personal .stats-filter-positions { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  #stats-personal .stats-filter-console { padding: 16px 12px 10px; }
  #stats-personal .stats-filter-grid { gap: 16px 12px; }
  #stats-personal .stats-filter-caption small { display: none; }
  #stats-personal .stats-filter-caption { font-size: 11px; margin-bottom: 8px; }
  #stats-personal .stats-filter-select select { font-size: 13px; height: 44px; padding-left: 10px; padding-right: 26px; }
  #stats-personal .stats-filter-chevron { right: 9px; }
  #stats-personal #stats-personal-lanes { height: 44px; gap: 1px; padding: 3px; }
  #stats-personal #stats-personal-lanes button { height: 36px; padding: 0 2px; font-size: 12px; }
  #stats-personal .stats-filter-tools { gap: 4px; }
  #stats-personal .stats-filter-tools button { padding: 0 7px; }
  #stats-personal .stats-favorite-picker { flex: 1; width: auto; min-width: 110px; }
  #stats-personal #vip-share { margin-left: auto; }
}
