/* Mugshot picker — Edit profile (#77 / #78); light modal surface */
.mugshot-picker {
  margin: 0 0 14px;
}

.mugshot-picker-hint {
  margin: 0 0 10px;
}

.mugshot-pick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mugshot-pick-tab {
  appearance: none;
  border: 1.5px solid #B0BEC5;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  color: #263238;
  border-radius: 12px;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.mugshot-pick-tab:hover:not(.mugshot-pick-tab--on) {
  border-color: #78909C;
  background: #ECEFF1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.mugshot-pick-tab:focus-visible {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

.mugshot-pick-tab--on {
  background: linear-gradient(135deg, #1565C0 0%, #00838F 100%);
  border-color: #0D47A1;
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(21, 101, 192, 0.35);
  transform: translateY(-1px);
}

.mugshot-pick-tab--locked:not(.mugshot-pick-tab--on) {
  background: #FAFAFA;
  border-color: #CFD8DC;
  border-style: dashed;
  color: #546E7A;
}

.mugshot-pick-tab-hint {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  color: #607D8B;
}

.mugshot-pick-tab--on .mugshot-pick-tab-hint {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.mugshot-pick-tab--locked:not(.mugshot-pick-tab--on) .mugshot-pick-tab-hint {
  color: #90A4AE;
}

.mugshot-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 4px 8px;
  background: #F7F9FB;
  border: 1px solid #E0E7EE;
  border-radius: 12px;
}

.mugshot-pick-cell {
  appearance: none;
  border: 2px solid #E0E7EE;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 6px 4px 8px;
  cursor: pointer;
  color: #37474F;
  position: relative;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mugshot-pick-cell:hover:not(.mugshot-pick-cell--locked) {
  border-color: #90CAF9;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.12);
}

.mugshot-pick-cell:focus-visible {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

.mugshot-pick-cell--sel {
  border-color: #1565C0;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.2);
  background: #E3F2FD;
}

.mugshot-pick-cell--locked {
  cursor: not-allowed;
  background: #F5F5F5;
  opacity: 0.88;
}

.mugshot-pick-av {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 50%;
  overflow: hidden;
}

.mugshot-pick-av .user-av-svg,
.mugshot-pick-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.mugshot-pick-lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
  color: #455A64;
}

.mugshot-pick-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  color: #546E7A;
  padding: 4px;
  text-align: center;
}

.mugshot-pick-lock .ti {
  font-size: 14px;
  color: #78909C;
}

/* Profile achievements strip (#78) — dark profile panel */
.ps-section-mugshot-ach {
  margin-bottom: 12px;
}

.mugshot-ach-collapse-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mugshot-ach-collapse-trigger.ps-section-title {
  margin-bottom: 0;
}

.mugshot-ach-collapse.is-open .mugshot-ach-collapse-trigger.ps-section-title {
  margin-bottom: 8px;
}

.mugshot-ach-collapse-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.mugshot-ach-collapse-meta {
  font-size: 11px;
  font-weight: 600;
  color: #90A4AE;
  white-space: nowrap;
}

.mugshot-ach-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5c6bc0 0%, #3949ab 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(57, 73, 171, 0.45);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Beat .ps-section-title i { color: var(--pg) } on the trigger button */
.ps-section-mugshot-ach .mugshot-ach-chevron .ti,
.ps-section-mugshot-ach .mugshot-ach-chevron i {
  font-size: 20px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.35);
}

.mugshot-ach-collapse-trigger:hover .mugshot-ach-chevron,
.mugshot-ach-collapse-trigger:focus-visible .mugshot-ach-chevron {
  background: linear-gradient(180deg, #7986cb 0%, #3949ab 100%);
  box-shadow: 0 3px 10px rgba(57, 73, 171, 0.55);
}

.mugshot-ach-collapse-trigger:hover .mugshot-ach-chevron .ti,
.mugshot-ach-collapse-trigger:focus-visible .mugshot-ach-chevron .ti,
.mugshot-ach-collapse-trigger:hover .mugshot-ach-chevron i,
.mugshot-ach-collapse-trigger:focus-visible .mugshot-ach-chevron i {
  color: #fff;
}

.mugshot-ach-collapse.is-open .mugshot-ach-chevron {
  transform: rotate(180deg);
  background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.45);
  color: #fff;
}

.mugshot-ach-collapse.is-open .mugshot-ach-chevron .ti,
.mugshot-ach-collapse.is-open .mugshot-ach-chevron i {
  color: #fff;
}

.mugshot-ach-collapse-body[hidden] {
  display: none !important;
}

.ps-section-mugshot-ach .mugshot-ach-meta {
  font-size: 12px;
  color: #90A4AE;
  margin: 0 0 8px;
}

.mugshot-ach-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mugshot-ach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.mugshot-ach-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.mugshot-ach-thumb--dupr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef2ff 0%, #e8eaf6 100%);
  color: #1a237e;
  border-color: rgba(57, 73, 171, 0.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mugshot-ach-row--locked .mugshot-ach-thumb--dupr {
  filter: none;
  opacity: 0.72;
  background: linear-gradient(180deg, #eceff1 0%, #cfd8dc 100%);
  color: #546e7a;
}

.mugshot-ach-thumb--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78909C;
  font-size: 20px;
}

.mugshot-ach-row--locked .mugshot-ach-thumb {
  filter: grayscale(0.85) brightness(0.72);
  opacity: 0.88;
}

.mugshot-ach-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mugshot-ach-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mugshot-ach-status {
  font-size: 14px;
  color: #81C784;
  flex-shrink: 0;
}

.mugshot-ach-row--locked .mugshot-ach-status {
  color: #90A4AE;
}

.mugshot-ach-row--earned {
  background: rgba(76, 175, 80, 0.12);
}

.mugshot-ach-row--locked {
  opacity: 0.78;
}

.mugshot-ach-name {
  flex: 1;
  font-weight: 600;
  min-width: 0;
}

.mugshot-ach-progress {
  font-size: 11px;
  color: #90A4AE;
  line-height: 1.35;
}
.mugshot-ach-progress--earned {
  color: #558B2F;
  font-weight: 600;
}

@media (min-width: 720px) {
  .mugshot-pick-tabs {
    gap: 10px;
  }

  .mugshot-pick-tab {
    padding: 9px 16px;
    font-size: 13px;
  }

  .mugshot-pick-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    max-height: 260px;
  }

  .mugshot-pick-av {
    width: 56px;
    height: 56px;
  }
}
