﻿.profile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.88), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(225, 71, 61, 0.14), transparent 24%),
    radial-gradient(circle at 76% 62%, rgba(18, 60, 120, 0.08), transparent 26%),
    linear-gradient(180deg, #f9efea 0%, #f4e0d7 44%, #efd7cb 100%);
}

.profile-page .profile-header {
  background: linear-gradient(180deg, rgba(15, 50, 102, 0.18) 0%, rgba(15, 50, 102, 0.05) 78%, rgba(15, 50, 102, 0) 100%);
}

.profile-page .profile-main {
  position: relative;
  min-height: 100vh;
  padding-top: 92px;
  isolation: isolate;
}

.profile-page .profile-hero {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 24px 0 56px;
  overflow: hidden;
}

.profile-bg-media {
  position: fixed;
  right: -5vw;
  bottom: -72px;
  z-index: -1;
  width: min(54vw, 720px);
  opacity: 0.11;
  pointer-events: none;
}

.profile-bg-media img {
  width: 100%;
  filter: drop-shadow(0 30px 72px rgba(15, 50, 102, 0.18));
}

.profile-page .profile-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-brand,
.profile-user-card,
.profile-side-card,
.profile-side-nav a {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 38px rgba(70, 46, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px);
}

.profile-brand,
.profile-user-card,
.profile-side-card,
.profile-page .profile-panel,
.profile-page .family-card,
.profile-page .profile-detail,
.profile-page .profile-event-row,
.profile-page .telegram-link-panel {
  animation: profileFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 13px;
  border-radius: 18px;
  color: var(--text-deep);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.profile-user-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border-radius: 20px;
}

.profile-avatar,
.family-card-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f05a24 58%, var(--text-deep));
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(225, 71, 61, 0.22);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 0.92rem;
}

.profile-user-card span,
.profile-side-card span,
.profile-stat-card span,
.profile-section-label,
.profile-quick-pill span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-user-card strong,
.profile-side-card strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--text-deep);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.profile-side-nav {
  display: grid;
  gap: 8px;
}

.profile-side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 50px;
  padding: 11px 14px 11px 17px;
  border-radius: 15px;
  color: var(--text-deep);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.profile-side-nav a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-side-nav a:hover,
.profile-side-nav a.active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(225, 71, 61, 0.16);
  box-shadow: 0 16px 30px rgba(15, 50, 102, 0.1);
}

.profile-side-nav a.active::before {
  background: linear-gradient(180deg, var(--orange), #f05a24);
}

.profile-side-nav a span {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-side-nav a small {
  color: var(--orange);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-side-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(225, 71, 61, 0.14), rgba(45, 187, 61, 0.08));
}

.profile-side-card a {
  width: fit-content;
  margin-top: 4px;
  color: var(--orange);
  font-weight: 600;
}

.profile-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.profile-topline {
  min-height: 132px;
  display: flex;
  align-items: end;
  padding: 10px 4px 0;
}

.profile-topline h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text-deep);
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.profile-topline p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.profile-quickbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}

.profile-quick-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 30px rgba(15, 50, 102, 0.06);
  backdrop-filter: blur(16px);
}

.profile-quick-pill strong {
  color: var(--text-deep);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-quick-pill .profile-completion-value,
.profile-stat-card.profile-completion-card strong {
  color: var(--completion-color, var(--text-deep));
}

.profile-page .profile-panel {
  width: 100%;
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 44px rgba(70, 46, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(20px);
  scroll-margin-top: 108px;
}

.profile-page .profile-overview {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(225, 71, 61, 0.12), rgba(18, 60, 120, 0.08));
}

.profile-page .profile-panel-head,
.profile-page .profile-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-page .profile-panel h2,
.profile-page .profile-block-head h3,
.profile-page .profile-events h3 {
  margin: 0;
  color: var(--text-deep);
  letter-spacing: 0;
  text-transform: none;
}

.profile-page .profile-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.profile-page .profile-block-head h3,
.profile-page .profile-events h3 {
  margin-top: 4px;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.12;
}

.profile-logout,
.profile-button-quiet,
.profile-page .profile-text-button,
.profile-page .family-card-actions button,
.profile-page .profile-cancel-registration {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(18, 60, 120, 0.1);
  background: rgba(18, 60, 120, 0.06);
  color: var(--text-deep);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.profile-logout:hover,
.profile-button-quiet:hover,
.profile-page .profile-text-button:hover,
.profile-page .family-card-actions button:hover,
.profile-page .profile-cancel-registration:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(225, 71, 61, 0.18);
  box-shadow: 0 10px 20px rgba(15, 50, 102, 0.08);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-stat-card {
  min-height: 86px;
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18, 60, 120, 0.05);
  border: 1px solid rgba(18, 60, 120, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-stat-card:hover,
.profile-page .profile-detail:hover,
.profile-page .family-card:hover,
.profile-page .profile-event-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 50, 102, 0.08);
}

.profile-stat-card.accent {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f05a24 56%, #ff7f54);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(225, 71, 61, 0.2);
}

.profile-stat-card.accent span,
.profile-stat-card.accent strong {
  color: #fff;
}

.profile-stat-card strong {
  color: var(--text-deep);
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.profile-stat-card.profile-completion-card strong {
  color: var(--completion-color, var(--text-deep));
}

.profile-page .profile-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-page .profile-detail {
  min-height: 92px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 60, 120, 0.06);
  box-shadow: 0 10px 24px rgba(15, 50, 102, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-page .profile-detail span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-page .profile-detail strong {
  display: block;
  margin-top: 8px;
  color: var(--text-deep);
  overflow-wrap: anywhere;
  font-size: clamp(0.92rem, 1.35vw, 1rem);
  line-height: 1.22;
}

.profile-page .telegram-link-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 60, 120, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(18, 60, 120, 0.04), rgba(255, 255, 255, 0.88));
}

.profile-page .telegram-link-panel > div {
  display: grid;
  gap: 5px;
}

.profile-page .telegram-link-panel p {
  margin: 0;
}

.telegram-connect-code {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.12em;
}

.profile-page .profile-form,
.profile-page .profile-form.compact {
  display: grid;
  gap: 14px;
}

.profile-page .profile-form.compact {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 60, 120, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.profile-page .profile-form label {
  display: grid;
  gap: 6px;
}

.profile-page .profile-form input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 60, 120, 0.1);
  background: rgba(245, 248, 255, 0.86);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-page .profile-form input:focus {
  outline: none;
  border-color: rgba(225, 71, 61, 0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(225, 71, 61, 0.08);
}

.profile-page .profile-consents {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 60, 120, 0.08);
  background: linear-gradient(145deg, rgba(18, 60, 120, 0.04), rgba(255, 255, 255, 0.9));
}

.profile-page .profile-consent-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-page .profile-consent-item.required {
  background: rgba(255, 255, 255, 0.9);
}

.profile-page .profile-consent-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.profile-page .profile-consent-item span {
  color: var(--text-deep);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.profile-page .profile-consent-item a {
  color: var(--orange);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.profile-page .profile-consent-item small {
  grid-column: 2;
  color: var(--orange-dark);
  font-size: 0.76rem;
  line-height: 1.35;
}

.profile-page .profile-consent-item:has(input:checked) {
  border-color: rgba(225, 71, 61, 0.22);
  box-shadow: 0 12px 24px rgba(225, 71, 61, 0.08);
  background: linear-gradient(135deg, rgba(225, 71, 61, 0.08), rgba(255, 255, 255, 0.96));
}

.profile-actions-row,
.family-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-page .family-list {
  display: grid;
  gap: 12px;
}

.profile-page .family-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 60, 120, 0.06);
  box-shadow: 0 10px 24px rgba(15, 50, 102, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.family-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 0.82rem;
}

.profile-page .family-card div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-page .family-card strong,
.profile-page .family-card span {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.profile-page .profile-events {
  margin-top: 0;
}

.profile-page #registrations {
  order: 5;
}

.profile-page #family {
  order: 6;
}

.profile-page #events {
  order: 7;
}

.profile-page .profile-registrations-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(255, 247, 242, 0.78)),
    linear-gradient(135deg, rgba(225, 71, 61, 0.1), rgba(34, 139, 72, 0.07));
}

.profile-page .profile-registrations-panel .profile-block-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(18, 60, 120, 0.07);
}

.profile-page .profile-registrations-panel .profile-muted {
  margin: 6px 0 0;
}

.profile-page .profile-event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 60, 120, 0.06);
  box-shadow: 0 10px 24px rgba(15, 50, 102, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-page .profile-event-row + .profile-event-row {
  margin-top: 12px;
}

.profile-page .profile-event-row div {
  min-width: 0;
}

.profile-page .profile-event-row strong {
  display: block;
  color: var(--text-deep);
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.2;
  margin-bottom: 4px;
}

.profile-page .profile-event-row span,
.profile-page .profile-event-row time {
  overflow-wrap: anywhere;
}

.profile-page .profile-registration-row {
  border-left: 5px solid rgba(225, 71, 61, 0.78);
  background:
    linear-gradient(90deg, rgba(225, 71, 61, 0.07), rgba(255, 255, 255, 0.94) 34%),
    rgba(255, 255, 255, 0.92);
}

.profile-page .profile-event-row span,
.profile-page .profile-event-row time,
.profile-page .profile-muted {
  color: var(--muted);
}

.profile-event-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-event-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18, 60, 120, 0.05);
  border: 1px solid rgba(18, 60, 120, 0.06);
}

.profile-page .profile-event-row time {
  font-weight: 600;
  text-align: right;
  font-size: 0.82rem;
}

.profile-page .profile-event-row-action {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.profile-page .profile-event-info {
  display: grid;
  gap: 5px;
}

.profile-page .profile-participant-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-page .profile-participant-picker label {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 12px 10px 40px;
  border-radius: 16px;
  border: 1px solid rgba(18, 60, 120, 0.08);
  background: rgba(18, 60, 120, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-page .profile-participant-picker label:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(225, 71, 61, 0.18);
  box-shadow: 0 12px 24px rgba(15, 50, 102, 0.06);
}

.profile-page .profile-participant-picker label input {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(-50%);
}

.profile-page .profile-participant-picker label span {
  font-weight: 600;
  color: var(--text-deep);
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.profile-page .profile-participant-picker label small {
  font-size: 0.72rem;
  line-height: 1.2;
}

.profile-page .profile-participant-picker label.disabled {
  opacity: 0.64;
  cursor: default;
}

.profile-page .profile-participant-picker label:has(input:checked) {
  background: linear-gradient(135deg, rgba(225, 71, 61, 0.12), rgba(255, 255, 255, 0.96));
  border-color: rgba(225, 71, 61, 0.28);
  box-shadow: 0 14px 26px rgba(225, 71, 61, 0.1);
}

.profile-page .profile-event-button,
.profile-page .profile-submit {
  min-height: 44px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-page .profile-floating-message {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(70, 46, 27, 0.14);
}

.profile-page .profile-auth-panel {
  max-width: 760px;
  padding: 16px;
}

.profile-page .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(18, 60, 120, 0.06);
}

.profile-page .auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-deep);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.profile-page .auth-tabs button.active {
  background: linear-gradient(135deg, var(--orange), #f05a24);
  color: #fff;
  box-shadow: 0 10px 22px rgba(225, 71, 61, 0.22);
}

.profile-page .profile-form-note,
.profile-page .profile-hint,
.profile-page .profile-muted {
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-page .profile-error-list {
  margin: 0;
  padding-left: 18px;
  color: var(--orange-dark);
  font-size: 0.82rem;
}

.profile-page code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(18, 60, 120, 0.08);
  color: var(--text-deep);
  font-family: inherit;
  font-weight: 600;
}

@keyframes profileFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .profile-page .profile-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .profile-page .profile-details-grid,
  .profile-stats-grid,
  .profile-quickbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page .profile-participant-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .profile-page .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-topline {
    min-height: 0;
  }

  .profile-quickbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-page .container.profile-shell {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }

  .profile-page .profile-main {
    padding-top: 82px;
  }

  .profile-page .profile-hero {
    padding: 18px 0 40px;
  }

  .profile-bg-media {
    width: 100vw;
    right: -32vw;
    bottom: -20px;
  }

  .profile-page .profile-shell {
    gap: 14px;
    min-width: 0;
    overflow-x: hidden;
  }

  .profile-sidebar,
  .profile-content,
  .profile-page .profile-panel,
  .profile-page .profile-form,
  .profile-page .profile-detail,
  .profile-page .profile-event-row,
  .profile-page .family-card {
    width: 100%;
    max-width: calc(100vw - 32px);
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .profile-brand {
    min-height: 56px;
  }

  .profile-user-card,
  .profile-page .profile-panel {
    border-radius: 18px;
  }

  .profile-side-nav {
    grid-template-columns: 1fr;
  }

  .profile-side-nav a {
    min-height: 56px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .profile-side-nav a small {
    white-space: normal;
  }

  .profile-topline h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .profile-topline p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .profile-quickbar,
  .profile-page .profile-details-grid,
  .profile-stats-grid,
  .profile-page .form-grid-two,
  .profile-page .profile-participant-picker {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-panel {
    padding: 16px;
    scroll-margin-top: 86px;
    overflow: hidden;
  }

  .profile-page .profile-panel-head,
  .profile-page .profile-block-head,
  .profile-page .profile-event-row,
  .profile-page .family-card {
    align-items: flex-start;
  }

  .profile-page .profile-panel-head,
  .profile-page .profile-block-head {
    flex-direction: column;
  }

  .profile-page .family-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-page .family-card-actions {
    grid-column: 1 / -1;
  }

  .profile-page .profile-event-row {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-event-row time {
    text-align: left;
  }

  .profile-page .auth-tabs {
    margin-bottom: 14px;
  }

  .profile-page .form-message,
  .profile-page .profile-hint {
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .profile-page code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.profile-page h1,
.profile-page h2,
.profile-page h3,
.profile-page h4,
.profile-page .main-nav a,
.profile-page .mobile-nav-panel a,
.profile-page .btn,
.profile-page button,
.profile-page strong,
.profile-page b {
  font-weight: 600;
}

.profile-page input,
.profile-page select,
.profile-page textarea,
.profile-page label,
.profile-page p,
.profile-page span,
.profile-page small {
  font-weight: 400;
}
