.rsuserprofile {
  --rsuserprofile-color-primary: var(--color-primary, rgb(122 136 54));
  --rsuserprofile-color-accent: var(--color-accent, rgb(212 117 25));
  --rsuserprofile-color-heading: var(--color-heading, rgb(28 31 33));
  --rsuserprofile-color-text: var(--color-text, rgb(42 46 48));
  --rsuserprofile-color-text-soft: var(--color-text-soft, rgb(94 101 106));
  --rsuserprofile-color-bg: var(--color-bg, rgb(253 253 253));
  --rsuserprofile-color-surface: var(--color-surface, rgb(255 255 255));
  --rsuserprofile-color-border: var(--color-border, rgb(228 228 228));
  --rsuserprofile-color-on-dark: var(--color-surface, rgb(255 255 255));
  --rsuserprofile-radius: var(--radius-soft, 6px);
  --rsuserprofile-radius-large: 8px;
  --rsuserprofile-shadow: var(--shadow-soft, 0 10px 30px rgba(16, 20, 18, 0.08));
  margin: 1.5rem 0;
}

.rsuserprofile-teaserList {
  display: grid;
  gap: 0;
}

.rsuserprofile-teaserList__heading {
  color: var(--rsuserprofile-color-heading);
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.rsuserprofile-message {
  border-radius: var(--rsuserprofile-radius);
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}

.rsuserprofile-message--success {
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 10%, var(--rsuserprofile-color-surface));
  color: var(--rsuserprofile-color-heading);
}

.rsuserprofile-message--error {
  background: color-mix(in srgb, var(--rsuserprofile-color-accent) 12%, var(--rsuserprofile-color-surface));
  border-left: 3px solid var(--rsuserprofile-color-accent);
  color: var(--rsuserprofile-color-heading);
}

.rsuserprofile-form {
  background: var(--rsuserprofile-color-surface);
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius-large);
  padding: 1.5rem;
}

.rsuserprofile-form__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.rsuserprofile-form__media {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rsuserprofile-form__imageWrap {
  align-items: center;
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 8%, var(--rsuserprofile-color-surface));
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius-large);
  display: flex;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  padding: 0.8rem;
}

.rsuserprofile-form__image,
.rsuserprofile-detail__image,
.rsuserprofile-teaser__image {
  display: block;
  max-width: 100%;
}

.rsuserprofile-form__upload {
  display: inline-flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rsuserprofile-form__upload input[type="file"] {
  background: var(--rsuserprofile-color-surface);
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius);
  color: var(--rsuserprofile-color-text);
  padding: 0.75rem;
}

.rsuserprofile-form__hint {
  color: var(--rsuserprofile-color-text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.rsuserprofile-form__fields {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.rsuserprofile-field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.rsuserprofile-field span {
  color: var(--rsuserprofile-color-heading);
  font-weight: 600;
}

.rsuserprofile-field input,
.rsuserprofile-field textarea {
  background: var(--rsuserprofile-color-surface);
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius);
  box-sizing: border-box;
  color: var(--rsuserprofile-color-text);
  font: inherit;
  line-height: 1.35;
  padding: 0.6rem 0.85rem;
  width: 100%;
}

.rsuserprofile-field input:focus-visible,
.rsuserprofile-field textarea:focus-visible,
.rsuserprofile-field select:focus-visible,
.rsuserprofile-form__upload input[type="file"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--rsuserprofile-color-primary) 60%, transparent);
  outline-offset: 1px;
}

.rsuserprofile-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.rsuserprofile-form__actions--top {
    margin: 0 0 1.25rem;
    justify-content: flex-end;
}

.rsuserprofile-form__actions {
  margin-top: 1.25rem;
}

.rsuserprofile-button {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--rsuserprofile-color-accent) 40%, transparent);
  border-radius: var(--rsuserprofile-radius-large);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rsuserprofile-button--primary {
  background: var(--rsuserprofile-color-heading);
  color: var(--rsuserprofile-color-on-dark);
}

/* The global .page-content a rule is more specific than the component class (login link, P02). */
.page-content a.rsuserprofile-button,
.page-content a.rsuserprofile-button:visited,
.page-content a.rsuserprofile-button:hover {
  color: var(--rsuserprofile-color-on-dark);
  text-decoration: none;
}

.rsuserprofile-button--primary:hover,
.rsuserprofile-button--primary:focus,
.page-content a.rsuserprofile-button--primary:hover {
  border-color: var(--rsuserprofile-color-accent);
  background: color-mix(in srgb, var(--rsuserprofile-color-heading) 80%, var(--rsuserprofile-color-accent));
  transform: translateY(-1px);
}

.rsuserprofile-button:focus-visible {
  outline: 3px solid var(--rsuserprofile-color-accent);
  outline-offset: 3px;
}

.rsuserprofile-teaserList > :first-child {
  padding-top: 0;
}

.rsuserprofile-teaserList > :last-child {
  padding-bottom: 0;
}

.rsuserprofile-placeholder {
  align-items: center;
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 8%, var(--rsuserprofile-color-surface));
  border-radius: inherit;
  box-shadow: none;
  color: var(--rsuserprofile-color-heading);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  text-transform: uppercase;
}

.rsuserprofile-placeholder--editor {
  border-radius: var(--rsuserprofile-radius-large);
  height: 220px;
  width: 220px;
}

.rsuserprofile-placeholder--teaser {
  font-size: 1.9rem;
  height: 100%;
  width: 100%;
}

.rsuserprofile-placeholder--detail {
  font-size: 3rem;
  height: 260px;
  width: 260px;
}

@media (max-width: 900px) {
  .rsuserprofile-form__grid,
  .rsuserprofile-detail {
    grid-template-columns: 1fr;
  }

  .rsuserprofile-teaser__image,
  .rsuserprofile-placeholder--teaser,
  .rsuserprofile-placeholder--detail,
  .rsuserprofile-placeholder--editor {
    margin: 0 auto;
  }

  .rsuserprofile-teaser {
    display: grid;
    gap: 1rem;
    grid-template-columns: 132px minmax(0, 1fr);
    padding: 1rem 0;
  }

  .rsuserprofile-teaser__media {
    display: block;
    height: 132px;
    width: 132px;
  }

  .rsuserprofile-teaser__content {
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    padding-left: 0;
    padding-top: 0;
    text-align: left;
    transform: none;
  }

  .rsuserprofile-teaser__image,
  .rsuserprofile-placeholder--teaser {
    height: 100%;
    width: 100%;
  }
}

/* Editor: toggles in the media column */
.rsuserprofile-form__toggle {
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius-large);
  background: var(--rsuserprofile-color-surface);
  padding: 0.9rem 1rem;
}

.rsuserprofile-form__toggleHead {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--rsuserprofile-color-heading);
  font-weight: 600;
}

.rsuserprofile-form__toggleHead input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--rsuserprofile-color-primary);
  flex: 0 0 auto;
}

.rsuserprofile-form__toggle .rsuserprofile-form__hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.rsuserprofile-form__licence {
  display: grid;
  gap: 0.85rem;
}

.rsuserprofile-form__licence .rsuserprofile-form__licenceHeading {
  margin: 0;
  color: var(--rsuserprofile-color-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.rsuserprofile-form__licence .rsuserprofile-form__hint {
  margin: 0;
}

.rsuserprofile .rsuserprofile-form__licenceAction {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-sizing: border-box;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius);
  background: var(--rsuserprofile-color-surface);
  color: var(--rsuserprofile-color-heading);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.rsuserprofile .rsuserprofile-form__licenceAction:hover {
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 6%, var(--rsuserprofile-color-surface));
  border-color: var(--rsuserprofile-color-primary);
}

.rsuserprofile-form__licenceAction:focus-visible {
  outline: 3px solid var(--rsuserprofile-color-accent);
  outline-offset: 3px;
}

.rsuserprofile-form__licenceCheck {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid var(--rsuserprofile-color-text-soft);
  border-radius: 3px;
}

.rsuserprofile-form__licenceAction.is-complete .rsuserprofile-form__licenceCheck {
  border-color: var(--rsuserprofile-color-primary);
  background: var(--rsuserprofile-color-primary);
}

.rsuserprofile-form__licenceAction.is-complete .rsuserprofile-form__licenceCheck::after {
  content: '';
  position: absolute;
  left: 0.33rem;
  top: 0.12rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--rsuserprofile-color-on-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rsuserprofile-field--focus {
  border-left: 3px solid var(--rsuserprofile-color-primary);
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 6%, var(--rsuserprofile-color-surface));
}

/* Editor: name row */
.rsuserprofile-form__nameRow {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.6fr) 1fr 1fr;
  gap: 0.75rem;
}

.rsuserprofile-field select {
  background: var(--rsuserprofile-color-surface);
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius);
  box-sizing: border-box;
  color: var(--rsuserprofile-color-text);
  font: inherit;
  line-height: 1.35;
  padding: 0.6rem 0.85rem;
  width: 100%;
}

/* Editor: description tabs (progressive; without JS both panels stay visible) */
.rsuserprofile-tabs__list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--rsuserprofile-color-border);
  margin-bottom: 0.75rem;
}

.rsuserprofile-tabs__tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--rsuserprofile-color-text-soft);
  cursor: pointer;
}

.rsuserprofile-tabs__tab.is-active {
  color: var(--rsuserprofile-color-heading);
  border-bottom-color: var(--rsuserprofile-color-primary);
}

.rsuserprofile-tabs.is-enhanced .rsuserprofile-tabs__panel {
  display: none;
}

.rsuserprofile-tabs.is-enhanced .rsuserprofile-tabs__panel.is-active {
  display: block;
}

.rsuserprofile-tabs.is-enhanced .rsuserprofile-tabs__fallbackLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rsuserprofile-tabs:not(.is-enhanced) .rsuserprofile-tabs__list {
  display: none;
}

/* Editor: contact block */
.rsuserprofile-form__contact {
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius-large);
  margin: 0;
  padding: 0.9rem 1rem 1.1rem;
  background: var(--rsuserprofile-color-surface);
}

.rsuserprofile-form__contactHeading {
  padding: 0 0.35rem;
  color: var(--rsuserprofile-color-heading);
  font-weight: 600;
}

.rsuserprofile-form__contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rsuserprofile-form__back {
  margin: 0 0 1rem;
}

.rsuserprofile-form__back a {
  color: var(--rsuserprofile-color-primary);
  font-weight: 600;
}

@media (max-width: 720px) {
  .rsuserprofile-form__grid {
    grid-template-columns: 1fr;
  }

  .rsuserprofile-form__nameRow,
  .rsuserprofile-form__contactGrid {
    grid-template-columns: 1fr;
  }
}

/* Editor: short-info row */
.rsuserprofile-form__shortRow {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) 1fr;
  gap: 0.75rem;
}

/* Editor: live preview card */
.rsuserprofile-preview__label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile-chip {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--rsuserprofile-color-text-soft);
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 6%, var(--rsuserprofile-color-surface));
}

.rsuserprofile-chip[hidden] {
  display: none;
}

.rsuserprofile-chip--role {
  border-color: var(--rsuserprofile-color-primary);
  color: var(--rsuserprofile-color-heading);
}

.rsuserprofile-card__interests {
  display: contents;
}

.rsuserprofile .rsuserprofile-card__placeLine {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile-completeness {
  margin-top: 0.6rem;
}

.rsuserprofile-completeness__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--rsuserprofile-color-border);
  overflow: hidden;
}

.rsuserprofile-completeness__bar span {
  display: block;
  height: 100%;
  background: var(--rsuserprofile-color-primary);
  transition: width 0.3s ease;
}

.rsuserprofile-completeness__text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile-completeness__text span::before {
  content: "\25CB";
  margin-right: 0.3rem;
}

.rsuserprofile-completeness__text span.is-done {
  color: var(--rsuserprofile-color-primary);
}

.rsuserprofile-completeness__text span.is-done::before {
  content: "\2713";
}

/* Editor: empty image state */
.rsuserprofile-placeholder--editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile-placeholder--editor small {
  font-size: 0.8rem;
}

.rsuserprofile-placeholder__silhouette {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rsuserprofile-color-border) 70%, var(--rsuserprofile-color-surface));
  overflow: hidden;
}

.rsuserprofile-placeholder__silhouette::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 34%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--rsuserprofile-color-border) 40%, var(--rsuserprofile-color-surface));
}

.rsuserprofile-placeholder__silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: 66%;
  height: 60%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: color-mix(in srgb, var(--rsuserprofile-color-border) 40%, var(--rsuserprofile-color-surface));
}

@media (max-width: 720px) {
  .rsuserprofile-form__shortRow {
    grid-template-columns: 1fr;
  }
}

/* Shared person card: author box, profile page, editor preview */
.rsuserprofile-card {
  --rsuserprofile-card-image: 148px;
  display: grid;
  grid-template-columns: var(--rsuserprofile-card-image) minmax(0, 1fr);
  gap: 0 1.8rem;
  align-items: start;
}

.rsuserprofile-card--teaser + .rsuserprofile-card--teaser {
  margin-top: 1.5rem;
}

.rsuserprofile-card--detail {
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
}

.rsuserprofile-card--detail .rsuserprofile-card__media {
  width: 100%;
}

.rsuserprofile-card--preview {
  --rsuserprofile-card-image: 96px;
  gap: 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--rsuserprofile-radius-large);
  background: var(--rsuserprofile-color-surface);
  box-shadow: var(--rsuserprofile-shadow);
}

.rsuserprofile-card__media {
  width: var(--rsuserprofile-card-image);
}

.rsuserprofile-card__mediaLink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rsuserprofile-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--rsuserprofile-radius-large);
  overflow: hidden;
  background: color-mix(in srgb, var(--rsuserprofile-color-primary) 8%, var(--rsuserprofile-color-surface));
  color: var(--rsuserprofile-color-heading);
  font-weight: 600;
  font-size: 1.9rem;
  text-transform: uppercase;
}

.rsuserprofile-card--detail .rsuserprofile-card__avatar {
  font-size: 3rem;
}

.rsuserprofile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rsuserprofile-card__body {
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--rsuserprofile-card-image);
}

.rsuserprofile-card--detail .rsuserprofile-card__body {
  min-height: 0;
}

.rsuserprofile .rsuserprofile-card__name {
  margin: 0 0 0.1rem;
  color: var(--rsuserprofile-color-heading);
  font-size: clamp(1.18rem, 1.45vw, 1.38rem);
  font-weight: 500;
  line-height: 1.15;
}

.rsuserprofile .rsuserprofile-card--detail .rsuserprofile-card__name {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
}

.rsuserprofile-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.rsuserprofile-card__name a:hover,
.rsuserprofile-card__name a:focus {
  color: var(--rsuserprofile-color-accent);
}

.rsuserprofile-card__name:empty::before {
  content: "\2014";
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile .rsuserprofile-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.rsuserprofile-card__chips:not(:has(.rsuserprofile-chip:not([hidden]))) {
  display: none;
}

.rsuserprofile .rsuserprofile-card__text {
  margin: 0.4rem 0 0;
  color: var(--rsuserprofile-color-text-soft);
  line-height: 1.7;
  max-width: 42rem;
  overflow-wrap: anywhere;
}

.rsuserprofile .rsuserprofile-card--detail .rsuserprofile-card__text {
  color: var(--rsuserprofile-color-text);
  max-width: none;
}

.rsuserprofile-card__more {
  display: inline;
  margin-left: 0.3rem;
  color: var(--rsuserprofile-color-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.rsuserprofile-card__more:hover,
.rsuserprofile-card__more:focus {
  color: var(--rsuserprofile-color-accent);
}

.rsuserprofile .rsuserprofile-card__label {
  margin: 1.4rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile .rsuserprofile-card__list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  line-height: 1.6;
}

.rsuserprofile .rsuserprofile-card__contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0;
}

.rsuserprofile-card__contact dt {
  color: var(--rsuserprofile-color-text-soft);
}

.rsuserprofile .rsuserprofile-card__contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rsuserprofile-card__contact a {
  color: var(--rsuserprofile-color-primary);
  text-decoration: none;
}

.rsuserprofile-card__contact a:hover {
  text-decoration: underline;
}

/* Profile page: roles, edit link, blocks, place, map */
.rsuserprofile .rsuserprofile-card__roles { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.35rem; }
.rsuserprofile .rsuserprofile-card__edit { margin: 0.6rem 0 0; font-size: 0.95rem; }
.rsuserprofile-card__editLink, .rsuserprofile-map__link a { color: var(--rsuserprofile-color-primary); font-weight: 600; text-decoration: none; }
.rsuserprofile-card__editLink:hover, .rsuserprofile-card__editLink:focus, .rsuserprofile-map__link a:hover, .rsuserprofile-map__link a:focus { color: var(--rsuserprofile-color-accent); }
.rsuserprofile-block { margin: 1.6rem 0 0; }
.rsuserprofile .rsuserprofile-block__label { margin: 0 0 0.45rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--rsuserprofile-color-text-soft); }
.rsuserprofile .rsuserprofile-block__stage { margin: 0 0 0.5rem; font-weight: 600; color: var(--rsuserprofile-color-heading); }
.rsuserprofile .rsuserprofile-block__group { margin: 0.75rem 0 0.25rem; font-size: 0.9rem; font-weight: 600; color: var(--rsuserprofile-color-text-soft); }
.rsuserprofile .rsuserprofile-block__list { margin: 0; padding-left: 1.1rem; line-height: 1.6; }
.rsuserprofile-block__item a { color: var(--rsuserprofile-color-primary); text-decoration: none; }
.rsuserprofile-block__item a:hover, .rsuserprofile-block__item a:focus { text-decoration: underline; }
.rsuserprofile-block__badge { display: inline-block; margin-left: 0.4rem; padding: 0 0.45rem; border: 1px solid var(--rsuserprofile-color-border); border-radius: 999px; font-size: 0.75rem; color: var(--rsuserprofile-color-text-soft); vertical-align: middle; }
.rsuserprofile-block__meta { margin-left: 0.4rem; font-size: 0.9rem; color: var(--rsuserprofile-color-text-soft); }
.rsuserprofile .rsuserprofile-block__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0; }
.rsuserprofile .rsuserprofile-place { margin: 0 0 0.75rem; line-height: 1.6; }
.rsuserprofile-place__name, .rsuserprofile-place__address, .rsuserprofile-place__city { display: block; }
.rsuserprofile-map { max-width: 100%; }
.rsuserprofile .rsuserprofile-map__link { margin: 0.5rem 0 0; font-size: 0.95rem; }

@media (max-width: 560px) {
  .rsuserprofile-card,
  .rsuserprofile-card--detail {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .rsuserprofile-card--detail .rsuserprofile-card__media {
    width: min(100%, 360px);
  }

  .rsuserprofile-card__body {
    min-height: 0;
  }
}

/* Editor: chips, place, visibility (S01) */
.rsuserprofile-form__actions--top { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.rsuserprofile-form__viewLink { color: var(--rsuserprofile-color-primary); font-weight: 600; text-decoration: none; }
.rsuserprofile-form__viewLink:hover { text-decoration: underline; }
.rsuserprofile-form__interests, .rsuserprofile-form__place { border: 1px solid var(--rsuserprofile-color-border); border-radius: var(--radius-soft, 6px); margin: 0; padding: 0.9rem 1rem 1.1rem; background: var(--rsuserprofile-color-surface); }
.rsuserprofile-form__interestsHeading, .rsuserprofile-form__placeHeading { padding: 0 0.35rem; color: var(--rsuserprofile-color-heading); font-weight: 600; }
.rsuserprofile-form__chipRow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rsuserprofile-chipToggle { position: relative; display: inline-flex; align-items: center; padding: 0.1rem 0.6rem; border: 1px solid var(--rsuserprofile-color-border); border-radius: 999px; font-size: 0.78rem; color: var(--rsuserprofile-color-text-soft); background: color-mix(in srgb, var(--rsuserprofile-color-primary) 6%, var(--rsuserprofile-color-surface)); cursor: pointer; }
.rsuserprofile-chipToggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rsuserprofile-chipToggle:has(input:checked) { border-color: var(--rsuserprofile-color-primary); color: var(--rsuserprofile-color-heading); background: color-mix(in srgb, var(--rsuserprofile-color-primary) 14%, var(--rsuserprofile-color-surface)); }
.rsuserprofile-chipToggle:has(input:focus-visible) { outline: 2px solid var(--rsuserprofile-color-primary); outline-offset: 2px; }
.rsuserprofile-form__placeTypes { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0 0 0.9rem; }
.rsuserprofile-radio { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.rsuserprofile-radio input { accent-color: var(--rsuserprofile-color-primary); }
.rsuserprofile-form__placeGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 720px) { .rsuserprofile-form__placeGrid { grid-template-columns: 1fr; } }
.rsuserprofile-visibility { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--rsuserprofile-color-text-soft); }
.rsuserprofile-visibility__hint { display: block; }
.rsuserprofile-field--muted input { color: var(--rsuserprofile-color-text-soft); background: color-mix(in srgb, var(--rsuserprofile-color-border) 30%, var(--rsuserprofile-color-surface)); }

/* S02 (P02): nicht sichtbares Profil, Edit-Link der Eigentümer:in */
.rsuserprofile .rsuserprofile-hidden {
  padding: 1rem 1.1rem;
  border: 1px solid var(--rsuserprofile-color-border);
  border-radius: var(--radius-soft, 6px);
  background: var(--rsuserprofile-color-surface);
}
.rsuserprofile .rsuserprofile-hidden__text {
  margin: 0;
  color: var(--rsuserprofile-color-text);
  line-height: 1.6;
}
.rsuserprofile .rsuserprofile-hidden__login {
  margin: 0.9rem 0 0;
}
.rsuserprofile .rsuserprofile-card__edit {
  margin: 0.25rem 0 0.75rem;
}
.rsuserprofile .rsuserprofile-card__editLink {
  color: var(--rsuserprofile-color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Provider-managed directory controls. */
.rsuserprofile-finder__statuses { display:grid; gap:.6rem; }
.rsuserprofile .rsuserprofile-form__licenceAction.is-complete { border-color:color-mix(in srgb,var(--color-primary) 50%,var(--color-border)); background:color-mix(in srgb,var(--color-primary) 6%,var(--color-surface)); }
.rsuserprofile-finder__publish { border-top:1px solid var(--color-border); padding-top:1rem; display:grid; gap:.65rem; }
.rsuserprofile-finder__publish button { justify-self:start; font:inherit; font-weight:600; padding:.6rem .9rem; border:1px solid var(--color-border); border-radius:6px; color:var(--color-surface); background:var(--color-heading); cursor:pointer; }
.rsuserprofile-finder__publish [hidden] { display:none; }
.rsuserprofile-finder__publish :disabled { cursor:default; opacity:.55; }
