/* Forefolk Me / profile */
#profileRoot { max-width: 560px; margin: 0 auto; padding-bottom: 24px; }
#profileRoot * { box-sizing: border-box; }
.profile-hero {
  padding: 22px; border-radius: 20px; color: #fffaf0;
  background: #1b4536; margin-bottom: 16px;
}
.profile-hero h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.15; margin: 8px 0 8px; }
.profile-hero p { color: #d1ded3; line-height: 1.5; margin: 0; }
.profile-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.profile-box {
  border: 1px solid var(--line, #d9d4c6); background: var(--card, #fff);
  border-radius: 16px; padding: 18px; margin-bottom: 14px;
}
.profile-box h2 { margin: 0 0 10px; font-size: 16px; }
.profile-note { color: var(--muted, #5c6d63); font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.profile-error { color: #9d2b25; font-weight: 600; font-size: 13px; margin: 0 0 10px; }
.profile-ok { color: #254d36; font-weight: 600; font-size: 13px; margin: 0 0 10px; }
.profile-fields { display: grid; gap: 12px; }
.profile-fields.two { grid-template-columns: 1fr 1fr; }
#profileRoot label {
  display: grid; gap: 5px; font-size: 12px; font-weight: 600;
  color: var(--muted, #5c6d63); text-transform: uppercase; letter-spacing: .06em;
}
#profileRoot input, #profileRoot select {
  width: 100%; border: 1px solid var(--line, #d9d4c6); border-radius: 10px;
  background: #faf8f2; color: var(--ink, #1a3328); padding: 11px 12px; font: inherit;
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px;
}
#profileRoot input:focus, #profileRoot select:focus {
  outline: none; border-color: var(--yellow, #1f4d36);
}
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#profileRoot .profile-btn {
  border-radius: 999px; padding: 11px 16px; border: 1px solid var(--line, #d9d4c6);
  background: #fff; color: var(--ink, #1a3328); font-weight: 700; min-height: 44px; font: inherit;
}
#profileRoot .profile-btn.primary {
  background: var(--yellow, #1f4d36); color: var(--yellow-ink, #f3f0e6); border-color: var(--yellow, #1f4d36);
}
#profileRoot .profile-btn.danger { color: #9d2b25; border-color: #e0b4ac; }
.profile-friend {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line, #d9d4c6);
}
.profile-friend:last-child { border-bottom: 0; }
.profile-friend b { display: block; font-size: 15px; color: var(--ink, #1a3328); }
.profile-friend small { color: var(--muted, #5c6d63); font-size: 12px; }
.profile-friend-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.profile-friend-actions .profile-btn { padding: 8px 12px; min-height: 40px; font-size: 13px; }
.profile-chip {
  display: inline-block; border-radius: 999px; padding: 3px 8px;
  background: #e5eee6; color: #254d36; font-size: 11px; font-weight: 700;
}
.player-quick-add {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px;
}
.player-quick-add .btn { margin-top: 0; width: auto; padding: 8px 12px; font-size: 13px; }
.player-friend-sheet {
  display: grid; gap: 8px; max-height: 50vh; overflow: auto; margin: 10px 0;
}
.player-friend-sheet button {
  text-align: left; border: 1px solid var(--line, #d9d4c6); border-radius: 12px;
  background: #faf8f2; padding: 12px; font: inherit; font-weight: 600;
}
.player-friend-sheet button small { display: block; font-weight: 500; color: var(--muted, #5c6d63); margin-top: 2px; }
.profile-legal a {
  color: var(--yellow, #1f4d36);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 520px) {
  .profile-fields.two { grid-template-columns: 1fr; }
}
