/* User identity and fixed icon centers, shared by the web and remote Android UI. */
html[data-yovoy-app="user"] .topbar .topbar-actions {
  --user-top-button-size: 40px;
  --user-top-icon-size: 28px;
  align-items: center;
  gap: 5px !important;
}

html[data-yovoy-app="user"] .topbar .topbar-actions > button {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  flex: 0 0 var(--user-top-button-size) !important;
  width: var(--user-top-button-size) !important;
  height: var(--user-top-button-size) !important;
  min-width: var(--user-top-button-size) !important;
  min-height: var(--user-top-button-size) !important;
  aspect-ratio: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  line-height: 1;
  vertical-align: middle;
  animation: none !important;
  transform: none !important;
}

html[data-yovoy-app="user"] .topbar .topbar-actions > button.d-none,
html[data-yovoy-app="user"] .topbar .topbar-actions > button[hidden] {
  display: none !important;
}

html[data-yovoy-app="user"] .topbar .topbar-actions .user-menu-icon,
html[data-yovoy-app="user"] .topbar .topbar-actions .user-license-button-icon {
  display: block;
  width: var(--user-top-icon-size);
  height: var(--user-top-icon-size);
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  align-self: center;
  justify-self: center;
}

html[data-yovoy-app="user"] .topbar .user-license-button-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  box-shadow: none;
}

html[data-yovoy-app="user"] .topbar .user-license-button-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

html[data-yovoy-app="user"] .user-profile-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(165, 76, 27, .13);
  border-radius: 50%;
  color: #7c391b;
  background: radial-gradient(circle at 30% 20%, #fff9ee 0, #ffe7ca 65%, #ffd4ae 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

html[data-yovoy-app="user"] .user-profile-avatar > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

html[data-yovoy-app="user"] .topbar .top-profile-button .user-profile-avatar {
  width: 30px;
  height: 30px;
  margin: 0;
  font-size: 12px;
  pointer-events: none;
}

html[data-yovoy-app="user"] .topbar .top-profile-button:is(:focus-visible, .is-active) .user-profile-avatar {
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

html[data-yovoy-app="user"] .user-profile-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid #f1dfcf;
  border-radius: 22px;
  color: #242629;
  background: linear-gradient(130deg, #fff9f1, #fff 72%);
}

html[data-yovoy-app="user"] .user-profile-photo-button {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html[data-yovoy-app="user"] .user-profile-photo-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 3px solid #fff9f2;
  border-radius: 50%;
  color: #fff;
  background: #b94b10;
  box-shadow: 0 2px 5px #7438101a;
  font-size: 12px;
  line-height: 1;
}

html[data-yovoy-app="user"] .user-profile-photo-camera svg {
  display: block;
  width: 14px;
  height: 14px;
}

html[data-yovoy-app="user"] .user-profile-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-yovoy-app="user"] .user-profile-info > :is(strong, span) {
  display: block;
}
html[data-yovoy-app="user"] .user-profile-info > strong { font-size: 19px; line-height: 1.3; }
html[data-yovoy-app="user"] .user-profile-info > span { margin-top: 5px; color: #69717c; font-size: 13px; }

html[data-yovoy-app="user"] .user-profile-info :is(h2, h3, strong) {
  margin: 0;
  color: #242629;
  font-weight: 800;
}

html[data-yovoy-app="user"] .user-profile-info :is(h2, h3) {
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.25;
}

html[data-yovoy-app="user"] .user-profile-info p {
  margin: 5px 0 0;
  color: #69717c;
  font-size: 13px;
  line-height: 1.5;
}

html[data-yovoy-app="user"] .user-profile-photo-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

html[data-yovoy-app="user"] .user-profile-photo-actions > :is(button, label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #ebc8ae;
  border-radius: 12px;
  color: #8a3915;
  background: #fff5e8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

html[data-yovoy-app="user"] .user-profile-photo-actions > :is(button, label):first-child {
  border-color: #b94b10;
  color: #fff;
  background: #b94b10;
}

html[data-yovoy-app="user"] .user-profile-photo-actions > :is(button, label):is([hidden], .d-none) {
  display: none !important;
}

html[data-yovoy-app="user"] :is(.user-profile-photo-button, .user-profile-photo-actions button):focus-visible {
  outline: 3px solid #ffb978;
  outline-offset: 3px;
}

html[data-yovoy-app="user"] :is(.user-profile-photo-button, .user-profile-photo-actions button):disabled {
  opacity: .6;
  cursor: wait;
}

html[data-yovoy-app="user"] .user-profile-photo-help,
html[data-yovoy-app="user"] .user-profile-photo-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #69717c;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-yovoy-app="user"] .user-profile-photo-status {
  color: #276645;
  font-weight: 700;
}

html[data-yovoy-app="user"] .user-profile-photo-status:empty { display: none; }
html[data-yovoy-app="user"] .user-profile-photo-status:is(.is-error, [data-state="error"]) { color: #ac3029; }

@media (max-width: 380px) {
  html[data-yovoy-app="user"] .user-profile-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  html[data-yovoy-app="user"] .user-profile-photo-button { width: 72px; height: 72px; }
  html[data-yovoy-app="user"] .user-profile-photo-actions { gap: 7px; }
  html[data-yovoy-app="user"] .user-profile-photo-actions > :is(button, label) { width: 100%; }
}

@media (max-width: 360px) {
  html[data-yovoy-app="user"] .topbar .topbar-actions {
    --user-top-button-size: 36px;
    --user-top-icon-size: 26px;
    gap: 4px !important;
  }
  html[data-yovoy-app="user"] .topbar .top-profile-button .user-profile-avatar { width: 28px; height: 28px; }
}
