.dashboard-masters-page {
  min-height: 100dvh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 0 0;
  display: flex;
  flex-direction: column;
}

.dashboard-masters-header {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 25;
  height: 64px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-masters-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1b1b1b;
  white-space: nowrap;
}

.dashboard-masters-back,
.dashboard-masters-done {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.dashboard-masters-btn-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.dashboard-masters-back {
  left: 16px;
  background: #fff;
  color: #1b1b1b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dashboard-masters-done {
  right: 16px;
  background: #1b1b1b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dashboard-masters-done.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dashboard-masters-search-wrap {
  padding: 16px 16px 24px;
}

.dashboard-masters-search {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #F7F9FA;
  outline: none;
  padding: 12px 14px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1b1b1b;
}

.dashboard-masters-search::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.dashboard-masters-error {
  display: none;
  padding: 8px 16px 10px;
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-masters-list {
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard-masters-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
}

.dashboard-masters-empty {
  padding: 24px 16px;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}

.dashboard-masters-group + .dashboard-masters-group {
  margin-top: 20px;
}

.dashboard-masters-group__title {
  margin: 0;
  padding: 0 16px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #6f7579;
}

.dashboard-masters-group__items {
  margin-top: 6px;
  margin-left: 16px;
  margin-right: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.dashboard-masters-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
}

.dashboard-masters-item + .dashboard-masters-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-masters-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
}

.dashboard-masters-item__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-masters-item__avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.dashboard-masters-item__info {
  flex: 1;
  min-width: 0;
}

.dashboard-masters-item__name {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1b1b1b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-masters-item__role {
  margin-top: 2px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: #6f7579;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.dashboard-masters-item__check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  padding: 0;
  cursor: pointer;
}

.dashboard-masters-item__check-icon {
  width: 24px;
  height: 24px;
  display: block;
}

@media (hover: hover) {
  .dashboard-masters-item:hover {
    background: rgba(0, 0, 0, 0.03);
  }
}
