.header-actions .profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
}
.profile-button svg { flex: none; }
.table-footer { padding-block: 10px 18px; border-top: 1px solid var(--line); }
.table-footer .button { padding-inline: 0; }

.profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.profile-heading h2 { overflow-wrap: anywhere; }
.profile-heading .rules-close { min-width: 40px; }
.profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.profile-form .button { min-height: 44px; }
.profile-friends { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); }
.profile-friends h3, .table-data h3 { margin: 0 0 6px; font-size: 1rem; }
.profile-roster { list-style: none; margin: 0; padding: 0; }
.profile-roster li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.profile-roster span { overflow-wrap: anywhere; }
.profile-friends > .quiet, .profile-invite { margin-top: 14px; }
.profile-status { margin: 10px 0; color: var(--ink); }
.profile-status:empty { display: none; }
.profile-status[data-error='true'] { color: var(--berry); }
.profile-clear { margin-top: 16px; color: var(--muted); }
.profile-clear summary { cursor: pointer; }
.profile-clear p { margin-block: 10px; }
.players .friend-save { flex: none; min-width: 40px; min-height: 40px; padding: 0; color: var(--blue); }
.players .friend-save span { font-size: 1.2rem; }
.players .friend-save:disabled { opacity: .75; }
.table-data > section + section { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.table-data p { margin: 0 0 5px; }

@media (max-width: 720px) {
  .header-actions .profile-button { padding: 0; }
  .profile-button span { display: none; }
}
@media (max-width: 370px) {
  .profile-form { grid-template-columns: 1fr; }
  .profile-form .button { justify-self: start; }
  .masthead .brand { gap: 5px; }
  .masthead .brand span { font-size: .94rem; }
  .masthead .brand svg { width: 26px; }
}
